From 8997327536c4eda4f77e55b4f1d9b1056f840140 Mon Sep 17 00:00:00 2001 From: Jason Dent Date: Thu, 2 Jan 2025 13:19:18 +0100 Subject: [PATCH] chore: Do not trigger all actions when updating the prerelease status. (#3993) --- .github/workflows/set-prerelease.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/set-prerelease.yml b/.github/workflows/set-prerelease.yml index 58c956ad0f..5d59830728 100644 --- a/.github/workflows/set-prerelease.yml +++ b/.github/workflows/set-prerelease.yml @@ -6,12 +6,18 @@ on: # rebuild any PRs and main branch changes type: boolean description: Is prerelease? default: true - +env: + BRANCH_NAME: update-prerelease-mode +permissions: + contents: write + pull-requests: write jobs: set-prerelease-mode: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: main - name: Install Node.js uses: actions/setup-node@v4 @@ -34,13 +40,12 @@ jobs: ``` - name: PR - uses: streetsidesoftware/actions/.github/actions/pr@v1 + uses: peter-evans/create-pull-request@v3 with: commit-message: 'fix: Set Prerelease Mode to `${{ inputs.prerelease }}`' - branch: update-prerelease-mode + branch: ${{ env.BRANCH_NAME }} base: main title: 'fix: Set Prerelease Mode to `${{ inputs.prerelease }}`' body: | Set Prerelease Mode to `${{ inputs.prerelease }}` - app_id: ${{ secrets.AUTOMATION_APP_ID }} - app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }} + token: ${{ secrets.GITHUB_TOKEN }}