| name: Sync master with main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| sync-master: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository_owner == 'dart-lang' }} | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Fast-forward master to main | |
| run: | | |
| git push origin HEAD:refs/heads/master --force |