| 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Fast-forward master to main | |
| run: | | |
| git push origin HEAD:refs/heads/master --force |