From fd5e7ee3f4f990b91ad742cc937984da0adfdcc2 Mon Sep 17 00:00:00 2001 From: Davide Marchegiani Date: Mon, 9 Sep 2024 11:23:28 +1000 Subject: [PATCH] Added ADMIN_TOKEN to checkout, to allow bypassing branch protections. --- .github/workflows/automatic_merge.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/automatic_merge.yml b/.github/workflows/automatic_merge.yml index 95dc41820..b8384e3d2 100644 --- a/.github/workflows/automatic_merge.yml +++ b/.github/workflows/automatic_merge.yml @@ -10,14 +10,13 @@ on: jobs: auto-merge: runs-on: ubuntu-latest - permissions: - contents: write steps: - name: Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@master with: - ref: main + ref: main fetch-depth: 0 + token: ${{ secrets.ADMIN_TOKEN }} - name: Import GPG settings uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0