Skip to content

Commit 0dc6dbc

Browse files
committed
chore: Moved owner + repo to env variable for slack job
1 parent bac012a commit 0dc6dbc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build-push.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ on:
4141
env:
4242
FRONT_DOOR_USERNAME: ${{ secrets.FRONT_DOOR_USERNAME }}
4343
FRONT_DOOR_PASSWORD: ${{ secrets.FRONT_DOOR_PASSWORD }}
44-
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
44+
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
45+
OWNER: nginxinc
46+
REPO: nginx-hugo-theme
4547
jobs:
4648
prod-check-branch:
4749
runs-on: ubuntu-24.04
@@ -86,8 +88,8 @@ jobs:
8688
-H "Accept: application/vnd.github+json" \
8789
-H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
8890
-H "X-GitHub-Api-Version: 2022-11-28" \
89-
"https://api.github.com/repos/nginxinc/nginx-hugo-theme/dispatches" \
90-
-d "{"event_type": "trigger-slack-notification", "client_payload": {"previewURL": "${{PREVIEW_URL}}"}}"
91+
"https://api.github.com/repos/${{ env.OWNER }}/${{ env.REPO }}/dispatches" \
92+
-d "{"event_type": "trigger-slack-notification", "client_payload": {"previewURL": "${{ env.PREVIEW_URL }}"}}"
9193
env:
9294
PREVIEW_URL: ${{ needs.call-docs-build-push.outputs.PREVIEW_URL }}
9395

0 commit comments

Comments
 (0)