Skip to content

Sync Fork

Sync Fork #347

Workflow file for this run

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