Skip to content

Commit 9b3e993

Browse files
committed
use env instead of string interpolation
1 parent 0b2945e commit 9b3e993

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/changelog.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ jobs:
1919
- name: Check for skip-changelog label
2020
id: skip
2121
shell: bash
22+
env:
23+
SKIP_CHANGELOG: ${{ contains(github.event.pull_request.labels.*.name, 'skip-changelog') }}
2224
run: |
23-
if ${{ contains(github.event.pull_request.labels.*.name, 'skip-changelog') }}; then
25+
if [ "$SKIP_CHANGELOG" = "true" ]; then
2426
echo "skip=true" >> "$GITHUB_OUTPUT"
2527
echo "PR has 'skip-changelog' label; bypassing changelog check."
2628
else

0 commit comments

Comments
 (0)