Skip to content

Commit 7ab7bf8

Browse files
committed
Workflow: Move owner and repo to env variable
1 parent d51a3ac commit 7ab7bf8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
types:
66
- published
77

8+
env:
9+
OWNER: nginx
10+
REPO: nginx-hugo-theme
11+
812
jobs:
913
trigger-documentation-build:
1014
runs-on: ubuntu-latest
@@ -16,5 +20,5 @@ jobs:
1620
-H "Accept: application/vnd.github+json" \
1721
-H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
1822
-H "X-GitHub-Api-Version: 2022-11-28" \
19-
"https://api.github.com/repos/nginx/documentation/dispatches" \
23+
"https://api.github.com/repos/${{ env.OWNER }}/${{ env.REPO }}/dispatches" \
2024
-d "{"event_type": "trigger-preview-build", "client_payload": {"environment": "preview", "hugo_theme_override": ""}}"

0 commit comments

Comments
 (0)