Skip to content

Commit 1e1efd1

Browse files
committed
Update Automerge workflow to use App Access Token (#103)
This updates the "Automerge" workflow to use the same App Access Token used by the "Sync from Upstream LLVM" workflow. This is necessary to allow the automerge script to bypass the branch protection rules of the repo, once PR approvals are required for merges.
1 parent 6abf1da commit 1e1efd1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/automerge.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,17 @@ jobs:
2020
- from_branch: release/20.x
2121
to_branch: release/arm-software/20.x
2222
steps:
23+
- name: Configure Access Token
24+
uses: actions/create-github-app-token@v1
25+
id: generate-token
26+
with:
27+
app-id: ${{ secrets.SYNC_APP_ID }}
28+
private-key: ${{ secrets.SYNC_APP_PRIVATE_KEY }}
2329
- name: Checkout
2430
uses: actions/checkout@v4
2531
with:
26-
ref: ${{ matrix.branches.to_branch }}
32+
ref: ${{ matrix.branches.to_branch }}
33+
token: ${{ steps.generate-token.outputs.token }}
2734
- name: Configure Git Identity
2835
run: |
2936
git config --local user.name "github-actions[bot]"

0 commit comments

Comments
 (0)