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.
This commit is contained in:
Tom Stellard 2020-11-25 14:43:18 -08:00 committed by GitHub
parent 175ebad958
commit c9eae09251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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