Skip to content

Commit

Permalink
[skip ci] added missing github token so we can use the GitHub CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
maforget committed Jul 4, 2024
1 parent a2d96f8 commit 76e48c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pr-comment-artifact-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ jobs:
# On an forked repo, pull_requests are empty above, making not being able to post a comment: https://github.com/orgs/community/discussions/25220#discussioncomment-7551168
- name: Get PR ID
id: pr-id
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
PR_ID=$(gh pr view -R "${{ github.repository }}" "${{ github.event.workflow_run.head_repository.owner.login }}:${{ github.event.workflow_run.head_branch }}" --json "number" --jq ".number")
echo "Pull request Number (2nd method): $PR_ID"
Expand Down

0 comments on commit 76e48c0

Please sign in to comment.