Skip to content

sync_upstream

sync_upstream #75

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