Skip to content

Commit

Permalink
CI: Add GH_TOKEN to publish workflow
Browse files Browse the repository at this point in the history
When trying to release a minor version, GitHub Actions said:

    gh: To use GitHub CLI in a GitHub Actions workflow, set the GH_TOKEN
    environment variable. Example:
      env:
        GH_TOKEN: ${{ github.token }}

we didn't notice it before, because this code doesn't run on patch
releases.
  • Loading branch information
bquorning committed Jun 3, 2024
1 parent 229d027 commit 4586047
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
--title "RuboCop RSpec $(git tag --points-at @)" \
--notes-file relnotes.md
- name: Replace version in Antora config
env:
GH_TOKEN: ${{ github.token }}
run: |
sed -i 's/version:.*$/version: ~/' docs/antora.yml
if ! git diff --exit-code docs/antora.yml; then
Expand Down

0 comments on commit 4586047

Please sign in to comment.