Sync Fork #329
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 | |
| on: | |
| schedule: | |
| - cron: '0 */6 * * *' # Runs every 6 hours | |
| workflow_dispatch: # Allows manual trigger | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Git | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Add upstream and sync | |
| run: | | |
| git remote add upstream https://github.com/eceusc/eceusc.ucsd.edu.git | |
| git fetch upstream | |
| git checkout main | |
| git merge upstream/main --allow-unrelated-histories | |
| git push origin main |