From 58188f217df1ad99b564dce17c7f0685309c8093 Mon Sep 17 00:00:00 2001 From: iphydf Date: Fri, 3 Jan 2025 01:21:14 +0000 Subject: [PATCH] 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 --- .github/workflows/common-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/common-ci.yml b/.github/workflows/common-ci.yml index 6d63c21..700cd47 100644 --- a/.github/workflows/common-ci.yml +++ b/.github/workflows/common-ci.yml @@ -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