From 54a5b2169a99c1ebd2a12db62de0401b65f8b44b Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Mon, 3 Jun 2024 16:38:14 +0200 Subject: [PATCH] CI: Add GH_TOKEN to publish workflow 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. --- .github/workflows/publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1c30495b2..0fd78539d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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