diff --git a/.github/workflows/ci-master-pr.yml b/.github/workflows/ci-master-pr.yml index eabd297..5301540 100644 --- a/.github/workflows/ci-master-pr.yml +++ b/.github/workflows/ci-master-pr.yml @@ -249,6 +249,8 @@ jobs: path: .release-notes.md - name: Create release if: startsWith(github.ref, 'refs/tags/') + env: + GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | # Process applicable environment variables export PROJECT_DIRECTORY=$( git rev-parse --show-toplevel ) @@ -258,5 +260,3 @@ jobs: # Release (Creates GitHub release) pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./src/scripts/ci/Invoke-Release.ps1' - env: - GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}