diff --git a/.github/workflows/sync-master-main.yaml b/.github/workflows/sync-master-main.yaml new file mode 100644 index 00000000000..c8e432f5065 --- /dev/null +++ b/.github/workflows/sync-master-main.yaml @@ -0,0 +1,17 @@ +name: sync-master-main +on: + push: + branches: + - master +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: update remote branch main + run: | + git status + git rev-parse HEAD + + # overrides the remote branch (origin:github) `main` + git push origin --force master:main