name: sync-master-main on: push: branches: - master permissions: {} jobs: sync: permissions: contents: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: update remote branch main run: | # overrides the remote branch (origin:github) `main` git push origin --force master:main