Sync Fork with Upstream #723
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync Fork with Upstream | |
| on: | |
| schedule: | |
| - cron: '0 */2 * * *' # Run every two hours | |
| workflow_dispatch: | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| fetch-depth: 0 | |
| - name: Add upstream remote | |
| run: | | |
| git remote add upstream https://github.com/coreboot/coreboot.git | |
| git fetch upstream | |
| - name: Merge upstream changes | |
| run: | | |
| git checkout main | |
| git merge upstream/main --ff-only || git merge upstream/main | |
| - name: Push changes | |
| run: git push origin main |