Skip to content

Commit ff67423

Browse files
committed
Fix checkout in post-merge workflow
1 parent 871be8f commit ff67423

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/post-merge.yml

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
pull-requests: write
1717
steps:
1818
- uses: actions/checkout@v4
19+
with:
20+
# Make sure that we have enough commits to find the parent merge commit.
21+
# Since all merges should be through merge commits, fetching two commits
22+
# should be enough to get the parent bors merge commit.
23+
fetch-depth: 2
1924
- name: Perform analysis and send PR
2025
env:
2126
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)