From 6cc0c65ee87974621360b16b25a826617be56996 Mon Sep 17 00:00:00 2001 From: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com> Date: Mon, 11 Nov 2024 11:26:59 +0000 Subject: [PATCH] GH Actions shortlog: check out head ref This avoids the action failing on PRs due to the merge commit checked out by default having different author details to the locally pushed changes by that contributor --- .github/workflows/shortlog.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/shortlog.yml b/.github/workflows/shortlog.yml index 25e2b0427e3..bb12246994a 100644 --- a/.github/workflows/shortlog.yml +++ b/.github/workflows/shortlog.yml @@ -17,6 +17,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 # need to fetch all commits to check contributors + ref: ${{ github.event.pull_request.head.sha }} - name: Check CONTRIBUTING.md uses: cylc/release-actions/check-shortlog@v1