diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 76e03e1..0844514 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -13,14 +13,19 @@ jobs: - name: Checkout Repository uses: actions/checkout@v3 - - name: Push to Mirror Repository + - name: Update from CEC GitHub run: | git switch production git fetch origin git pull - rm -rf .github + - name: Remove the .github folder + run: rm -rf .github + - name: Commit the change + run: | git config --global user.email "" git config --global user.name "GitHub Actions" git commit -a -m "[GitHub Action] Synced with CEC parent repo" + - name: Mirror to ISYE GitHub and push + run: | git remote add mirror https://jkolb6:${{ secrets.ISYE_MIRROR_TOKEN }}@github.gatech.edu/isye-web/tmm_hai_cec git push mirror production --force