Merge pull request #2 from checkedc/update-yaml-files #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: main branch sync | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
branch_sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
with: | |
# 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 | |
fetch-depth: 0 | |
- name: Update branch | |
env: | |
LLVMBOT_TOKEN: ${{ secrets.LLVMBOT_MAIN_SYNC }} | |
run: | | |
git push https://[email protected]/${{ github.repository }} HEAD:master |