From b19ec45fe554c335cb904d3d825e5170921cc88c Mon Sep 17 00:00:00 2001 From: BusyCityGuy <55513323+BusyCityGuy@users.noreply.github.com> Date: Wed, 25 Sep 2024 01:03:38 -0700 Subject: [PATCH] Add a GitHub app to bypass branch protection on main --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 89cee96..86514ac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,12 +67,21 @@ jobs: name: Preprocess release (update versions, copyright years) runs-on: ubuntu-latest needs: [install-tools, get-version] + environment: Release Preprocessor permissions: contents: write steps: + - uses: actions/create-github-app-token@v1.7.0 + id: release-preprocessor-bot-token + with: + app-id: ${{ vars.RELEASE_PREPROCESSOR_APP_ID }} + private-key: ${{ secrets.RELEASE_PREPROCESSOR_PRIVATE_KEY }} + - name: Checkout code uses: actions/checkout@v4.1.7 + with: + token: ${{ steps.release-preprocessor-bot-token.outputs.token }} - name: Restore installed items uses: actions/cache@v4.0.2