Skip to content

Commit

Permalink
add gh token
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Sep 14, 2024
1 parent 19f9eb4 commit 37015cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
- name: Get PR number
id: get-pr
env:
GH_TOKEN: ${{ github.token }}
run: |
PR_NUMBER=$(gh pr list --repo "${{ github.repository }}" --search "${{ github.sha }}" --json number --jq '.[0].number')
echo "::set-output name=pr_number::$PR_NUMBER"
Expand Down

0 comments on commit 37015cc

Please sign in to comment.