forked from OSchip/llvm-project
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:
parent
175ebad958
commit
c9eae09251
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue