Skip to content

Commit

Permalink
ci: fetch origin head_ref before checkout in fixture regeneration wor…
Browse files Browse the repository at this point in the history
…kflow
  • Loading branch information
ryan-gang committed Dec 23, 2024
1 parent 3a4800c commit f13675e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
git config --global user.email "ryan-gg@outlook.com"
git config --global user.name "Ryan Gang"
git remote set-url origin https://ryan-gang:${{ secrets.GITHUB_TOKEN }}@github.com/codecrafters-io/shell-tester.git
git fetch origin ${{ github.head_ref }}
git checkout ${{ github.head_ref }}
git diff --quiet || (git add . && git commit -m "ci: add regenerated fixtures" && git push)
Expand Down

0 comments on commit f13675e

Please sign in to comment.