From 36fc2d456bc646cb51779d86253914fdcc730e9f Mon Sep 17 00:00:00 2001 From: Rashid Rashidov Date: Thu, 18 Jul 2024 16:37:36 +0300 Subject: [PATCH] Fix release workflow - set proper env variable to pass github token --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28556a4..e991546 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,7 +47,7 @@ jobs: - name: Create draft release env: VERSION: ${{ steps.version.outputs.version }} - GH_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ github.token }} shell: bash run: | gh release create "${VERSION}" --draft --notes-file RELEASE.md @@ -55,7 +55,7 @@ jobs: - name: Publish Release env: VERSION: ${{ steps.version.outputs.version }} - GH_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ github.token }} shell: bash run: | gh release edit "${VERSION}" --draft=false --latest @@ -63,7 +63,7 @@ jobs: - name: Upload release artifacts env: VERSION: ${{ steps.version.outputs.version }} - GH_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ github.token }} shell: bash run: | gh release upload "${VERSION}" "./release-${VERSION}/cfapi-default-cr.yaml"