Skip to content

Commit

Permalink
Deleting remote mirror production branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkolb committed Apr 21, 2024
1 parent e2ee336 commit 8f9dcc5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,21 @@ jobs:
git switch production
git fetch origin
git pull
- 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
run: git remote add mirror https://jkolb6:${{ secrets.ISYE_MIRROR_TOKEN }}@github.gatech.edu/isye-web/tmm_hai_cec

- name: Delete the ISYE production branch
run: git push mirror --delete production

- name: Push to the ISYE production branch
run: git push mirror production --force

0 comments on commit 8f9dcc5

Please sign in to comment.