Skip to content

Commit 3c37fea

Browse files
atoulmepjanottigithub-actions[bot]
authored
Changelog fetch (open-telemetry#42340)
This is a redo of open-telemetry#41849 with a fix, use quotes around the value '0' so it is not assimilated to false. --------- Co-authored-by: Paulo Janotti <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 32981f5 commit 3c37fea

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)