From 36e2c0a31a71308561889c7245de4f65d029b6c6 Mon Sep 17 00:00:00 2001 From: Joel Timothy Oh Date: Mon, 24 Jun 2024 10:30:39 +0000 Subject: [PATCH] Refactor (ci): Standardize release job --- .github/workflows/ci-master-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }}