Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
aqw committed Feb 13, 2025
1 parent 5e2fb19 commit 1c3f3f5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/refresh_demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
# | | day of the month (1–31)
# | hour (0–23)
# minute (0–59)
- cron: '08 * * * *'
- cron: '53 * * * *'
permissions:
contents: write
jobs:
Expand Down Expand Up @@ -46,8 +46,12 @@ jobs:
git remote -v add fresh_demo /tmp/fresh_demo
git fetch fresh_demo
printf '\nGet branch name of the fresh demo repo.\n'
FRESH_DEMO_BRANCH_NAME=$(git -C /tmp/fresh_demo rev-parse --abbrev-ref HEAD)
printf 'Got: %s\n' "$FRESH_DEMO_BRANCH_NAME"
printf '\nHard reset the original repo to match the fresh demo.\n'
git reset --hard fresh_demo/main
git reset --hard "fresh_demo/${FRESH_DEMO_BRANCH_NAME}"
printf '\nForce push original repo back to origin.\n'
git push --force

0 comments on commit 1c3f3f5

Please sign in to comment.