Skip to content

Commit fbeb091

Browse files
Define nv at a step level
1 parent ccef4c2 commit fbeb091

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/pr-preview.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ jobs:
66
dispatch:
77
runs-on: ubuntu-latest
88
permissions:
9-
pull-requests: write
10-
env:
11-
branch_name: ${{ github.event.pull_request.head.ref }}
12-
GH_TOKEN: ${{ github.token }}
9+
pull-requests: write
1310
steps:
1411
- uses: actions/checkout@v4
1512
- uses: actions/setup-node@v4
@@ -32,6 +29,12 @@ jobs:
3229
git config --global user.email "${{ secrets.WAI_GIT_EMAIL }}"
3330
- name: Build and deploy WAI update
3431
run: npm run pr:preview
32+
env:
33+
branch_name: ${{ github.event.pull_request.head.ref }}
34+
GH_TOKEN: ${{ github.token }}
3535
- name: Comment on PR with preview link
3636
run: |
3737
gh pr comment ${{ github.event.pull_request.number }} --body "Preview ready at https://deploy-preview-${{ env.branch_name }}--wai-wcag-act-rules.netlify.app"
38+
env:
39+
branch_name: ${{ github.event.pull_request.head.ref }}
40+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)