Skip to content

Commit

Permalink
ci: passing github.token in workflow (#1147)
Browse files Browse the repository at this point in the history
The workflow failed with the error message:

> gh: To use GitHub CLI in a GitHub Actions workflow, set the GH_TOKEN environment variable. Example:
>  env:
>    GH_TOKEN: ${{ github.token }}
https://github.com/googleapis/google-oauth-java-client/actions/runs/13333566853/job/37243408904
  • Loading branch information
suztomo authored Feb 14, 2025
1 parent a700b61 commit 86a8148
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/louhi-tag-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
run: git fetch --tags
- name: Create additional tags
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: |
SHA=$(git log -1 --format=format:%H)
PR_NUMBER=$(gh pr list --search "$SHA" --state merged --json number --jq '.[].number')
Expand Down

0 comments on commit 86a8148

Please sign in to comment.