diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 75d86c9..36e443a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -289,6 +289,8 @@ jobs: release-notes.md - name: Prepare signed package repository + env: + GH_TOKEN: ${{ github.token }} shell: bash run: | set -euo pipefail @@ -297,7 +299,7 @@ jobs: if [ -n "$artifact_url" ]; then mkdir previous-pages curl --fail --location --retry 3 \ - --header "Authorization: Bearer ${GITHUB_TOKEN}" \ + --header "Authorization: Bearer ${GH_TOKEN}" \ "$artifact_url" -o previous-pages.zip unzip -q previous-pages.zip -d previous-pages elif gh api "repos/${GITHUB_REPOSITORY}/pages/deployments?per_page=1" --jq 'length' | grep -qx '0'; then