From c9eae09251e3e7d5a77a5970dfd59a4e81c9b936 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 25 Nov 2020 14:43:18 -0800 Subject: [PATCH] github actions: Use llvmbot token for main branch sync The default github actions token cannot push to restricted branches, so we need to use a token from the llvmbot user. --- .github/workflows/main-branch-sync.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main-branch-sync.yml b/.github/workflows/main-branch-sync.yml index 783c85041a1e..c8cd4773858b 100644 --- a/.github/workflows/main-branch-sync.yml +++ b/.github/workflows/main-branch-sync.yml @@ -15,5 +15,7 @@ jobs: fetch-depth: 0 - name: Update branch + env: + LLVMBOT_TOKEN: ${{ secrets.LLVMBOT_MAIN_SYNC }} run: | - git push https://${{ github.token }}@github.com/${{ github.repository }} HEAD:temp-test-main + git push https://$LLVMBOT_TOKEN@github.com/${{ github.repository }} HEAD:temp-test-main