sync_upstream #83
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: sync_upstream | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: # on button click | |
jobs: | |
merge: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: config | |
run: | | |
git config --global user.name 'certcc-test' | |
git config --global user.email '[email protected]' | |
- name: pull | |
run: | | |
git pull --unshallow | |
- name: fetch upstream | |
run: | | |
git remote add upstream https://github.com/tqylorlewis/A.git | |
git fetch upstream | |
- name: merge and push | |
run: | | |
git checkout main | |
git merge --no-edit upstream | |
git push --squash upstream |