Skip to content

Commit 59f72a8

Browse files
committed
fix: Check out the PR head instead of merge commit in restyled.
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
1 parent de9d3b4 commit 59f72a8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/common-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
runs-on: ubuntu-22.04
2020
steps:
2121
- uses: actions/checkout@v4
22+
with:
23+
ref: ${{ github.event.pull_request.head.sha }}
2224
- uses: restyled-io/actions/setup@v4
2325
- id: restyler
2426
uses: restyled-io/actions/run@v4

0 commit comments

Comments
 (0)