Skip to content

Commit

Permalink
GH Actions shortlog: check out head ref
Browse files Browse the repository at this point in the history
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
  • Loading branch information
MetRonnie committed Nov 11, 2024
1 parent 755675c commit ba24be7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/shortlog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0 # need to fetch all commits to check contributors
ref: ${{ github.head_ref }}

- name: Check CONTRIBUTING.md
uses: cylc/release-actions/check-shortlog@v1

0 comments on commit ba24be7

Please sign in to comment.