Skip to content

Commit

Permalink
ensure reset HEAD restores this state and not another state
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzwalthert committed Sep 15, 2024
1 parent 631b0cb commit 7ed0dd3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ jobs:
# hacky, maybe can use pre-commit try-repo?
# https://stackoverflow.com/questions/30871868/sed-replace-first-occurence-in-place-with-big-files
sed -i '' -e "1,/rev:.*/{s/rev:.*/rev: $GITHUB_SHA/;}" .pre-commit-config.yaml
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m 'current hash must be head'
- name: Run pre-commit
run: |
Expand Down

0 comments on commit 7ed0dd3

Please sign in to comment.