diff --git a/.github/workflows/rebuild-latest-release.yml b/.github/workflows/rebuild-latest-release.yml index d2d2141..25eb148 100644 --- a/.github/workflows/rebuild-latest-release.yml +++ b/.github/workflows/rebuild-latest-release.yml @@ -12,19 +12,21 @@ jobs: runs-on: 'ubuntu-latest' permissions: contents: 'read' + env: + PERSONAL_GITHUB_TOKEN: '${{ secrets.PERSONAL_GITHUB_TOKEN }}' steps: - name: 'REST API call' run: | RELEASE_TAG="$(curl -fsS --proto '=https' --tlsv1.3 --globoff \ --url "https://api.github.com/repos/${GITHUB_REPOSITORY:?}/releases/latest" \ - --header 'Authorization: Bearer ${{ secrets.PERSONAL_GITHUB_TOKEN }}' \ + --header "Authorization: Bearer ${PERSONAL_GITHUB_TOKEN:?}" \ --header 'Accept: application/vnd.github.v3+json' \ --header 'Content-Type: application/json' \ | jq -rc '.tag_name')" if [ -n "${RELEASE_TAG-}" ] && [ "${RELEASE_TAG:?}" != 'null' ]; then curl -fsS --proto '=https' --tlsv1.3 --globoff \ --url "https://api.github.com/repos/${GITHUB_REPOSITORY:?}/actions/workflows/main.yml/dispatches" \ - --header 'Authorization: Bearer ${{ secrets.PERSONAL_GITHUB_TOKEN }}' \ + --header "Authorization: Bearer ${PERSONAL_GITHUB_TOKEN:?}" \ --header 'Accept: application/vnd.github.v3+json' \ --header 'Content-Type: application/json' \ --data "$(jq -rn --arg tag "${RELEASE_TAG:?}" '{"ref": $tag}')"