Skip to content

Commit

Permalink
Add support for GITHUB_TOKEN environment variable
Browse files Browse the repository at this point in the history
Add support for setting the GITHUB_TOKEN environment variable needed for
the gh CLI application and the curl call to download the artifacts.
  • Loading branch information
jonathanio committed May 23, 2023
1 parent 2580fdf commit f74427e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ runs:
- name: Fetch the pull-requester artifact
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.github_token || github.token }}
# Both github.action_repository and .action_ref are not available inside
# the run: statement, but they are available under env: so set them here
# so they can be accessed as normal environment variable under the
Expand All @@ -25,6 +26,8 @@ runs:
- name: Run pull-requester against the pull request
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.github_token || github.token }}
run: |-
${{ github.action_path }}/bin/pull-requester run
Expand Down

0 comments on commit f74427e

Please sign in to comment.