2020-11-17 03:06:58 +08:00
|
|
|
name: main branch sync
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-12-07 14:16:36 +08:00
|
|
|
- 'main'
|
2020-11-17 03:06:58 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
branch_sync:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
2020-12-01 04:25:43 +08:00
|
|
|
# persist-credentials: false allows us to use our own credentials for
|
|
|
|
# pushing to the repository. Otherwise, the default github actions token
|
|
|
|
# is used.
|
|
|
|
persist-credentials: false
|
2020-11-17 03:06:58 +08:00
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Update branch
|
2020-11-26 06:43:18 +08:00
|
|
|
env:
|
|
|
|
LLVMBOT_TOKEN: ${{ secrets.LLVMBOT_MAIN_SYNC }}
|
2020-11-17 03:06:58 +08:00
|
|
|
run: |
|
2020-12-07 14:16:36 +08:00
|
|
|
git push https://$LLVMBOT_TOKEN@github.com/${{ github.repository }} HEAD:master
|