Skip to content

Commit 0c62b77

Browse files
authored
feat: Use vars to populate preview url (#173)
This commit allows forked versions of the repository to generate different preview URLs without modifying the action file itself. It's intended mostly for internal use.
1 parent be7acf7 commit 0c62b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-push.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
uses: nginxinc/docs-actions/.github/workflows/docs-build-push.yml@9c59fab05a8131f4d691ba6ea2b6a119f3ef832a # v1.0.7
6060
with:
6161
production_url_path: ""
62-
preview_url_path: "/previews/docs"
62+
preview_url_path: "${{ vars.PREVIEW_URL_PATH }}"
6363
docs_source_path: "public"
6464
docs_build_path: "./"
6565
doc_type: "hugo"

0 commit comments

Comments
 (0)