Skip to content

Commit

Permalink
Update mirror.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkolb authored Apr 21, 2024
1 parent cb8f7a5 commit 0aa588d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,30 @@ jobs:
- name: Update CEC repository
run: |
cd tmm-hai
git switch production
git fetch --force origin
git pull
- name: Add the ISYE repository as a mirror
run: |
cd tmm-hai
git remote add mirror https://jkolb6:${{ secrets.ISYE_MIRROR_TOKEN }}@github.gatech.edu/isye-web/tmm_hai_cec
git fetch --force mirror
- name: Remove the .github folder to avoid a recursive workflow
run: rm -rf .github
run: |
cd tmm-hai
rm -rf .github
- name: Commit the change
run: |
cd tmm-hai
git config --global user.email ""
git config --global user.name "GitHub Actions"
git commit -a -m "[GitHub Action] Synced with CEC parent repo"
- name: Push to the ISYE main branch
run: git push mirror production --force
run: |
cd tmm-hai
git push mirror production --force

0 comments on commit 0aa588d

Please sign in to comment.