name: Updates the master branch after changes in the main branch on: push: branches: - main jobs: mirror: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0 - name: Push run: | git push origin HEAD:master