Skip to content

Commit b64684e

Browse files
committed
Revert "Revert "[chore] checkout depth depending if the PR is a chore" (#41868)"
This reverts commit 89c963b.
1 parent c7b88c4 commit b64684e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/changelog.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
3434
with:
35-
fetch-depth: 0
35+
# Fetch complete history depth only if the PR is not a chore.
36+
fetch-depth: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies') && !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') && !contains(github.event.pull_request.title, '[chore]') && 0 || 1 }}
3637
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
3738
with:
3839
go-version: oldstable

0 commit comments

Comments
 (0)