Skip to content

Commit

Permalink
fix: Check out the PR head instead of merge commit in restyled.
Browse files Browse the repository at this point in the history
Should fix "The checked out commit does not match the event PR's head.
20a741e0d90339ae3f2bca41326e73f8ca6389db !=
715caf13cf2906727bffe7c4b6e964455d1c6bc5. Weird things may happen."

E.g. https://github.com/TokTok/qTox/actions/runs/12591052375?pr=354
  • Loading branch information
iphydf committed Jan 3, 2025
1 parent de9d3b4 commit 59f72a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/common-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: restyled-io/actions/setup@v4
- id: restyler
uses: restyled-io/actions/run@v4
Expand Down

0 comments on commit 59f72a8

Please sign in to comment.