Skip to content

Commit 2958f98

Browse files
prontclaude
andauthored
fix(ci): fetch full history in changelog workflow so origin/master is available (#24898)
The shallow clone (depth=1) done by actions/checkout meant origin/master did not exist, causing the check_changelog_fragments.sh script to fail with "ambiguous argument 'origin/master'". Setting fetch-depth: 0 ensures the full history and all remote refs are available. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 202b656 commit 2958f98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/changelog.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
# Checkout PR branch (includes script and changelog.d/)
4848
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4949
if: env.SHOULD_RUN == 'true'
50+
with:
51+
fetch-depth: 0
5052

5153
- name: Run changelog fragment checker
5254
if: env.SHOULD_RUN == 'true'

0 commit comments

Comments
 (0)