From 0aa588d8dc12d092ae2355d42977d4daa420902c Mon Sep 17 00:00:00 2001 From: Jack Kolb Date: Sun, 21 Apr 2024 11:02:57 -0400 Subject: [PATCH] Update mirror.yml --- .github/workflows/mirror.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 41cf899..8938ca7 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -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