Skip to content

Commit

Permalink
removing deleting ISYE production branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkolb committed Apr 21, 2024
1 parent 6a73ac9 commit f08bccb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
- name: Checkout CEC repository
uses: actions/checkout@v3

- name: Update from CEC GitHub
- name: Update CEC repository
run: |
git switch production
git fetch --force origin
git pull
- name: Remove the .github folder
- name: Remove the .github folder to avoid a recursive workflow
run: rm -rf .github

- name: Commit the change
Expand All @@ -28,11 +28,8 @@ jobs:
git config --global user.name "GitHub Actions"
git commit -a -m "[GitHub Action] Synced with CEC parent repo"
- name: Add ISYE mirror
- name: Add the ISYE repository as a mirror
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 || true

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

0 comments on commit f08bccb

Please sign in to comment.