Skip to content

Commit df48e65

Browse files
mydeaclaude
andcommitted
chore(ci): Replace pr-labels-action with native GitHub expressions
Replace the custom fork `mydea/pr-labels-action@fn/bump-node20` with built-in `github.event.pull_request.labels.*.name` expressions. Both usages already gate on `github.event_name == 'pull_request'`, so the labels context is always available when needed. This removes an external dependency and also eliminates the Node.js 20 deprecation warning this action was causing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 45d7b06 commit df48e65

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/ci-metadata.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ jobs:
7070
any_code:
7171
- '!**/*.md'
7272
73-
- name: Get PR labels
74-
id: pr-labels
75-
uses: mydea/pr-labels-action@fn/bump-node20
76-
7773
outputs:
7874
commit_label: '${{ env.COMMIT_SHA }}: ${{ env.COMMIT_MESSAGE }}'
7975
# Note: These next three have to be checked as strings ('true'/'false')!
@@ -86,7 +82,8 @@ jobs:
8682
# When merging into master, or from master
8783
is_gitflow_sync: ${{ github.head_ref == 'master' || github.ref == 'refs/heads/master' }}
8884
has_gitflow_label:
89-
${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' Gitflow ') }}
85+
${{ github.event_name == 'pull_request' && contains(toJSON(github.event.pull_request.labels.*.name),
86+
'Gitflow') }}
9087
force_skip_cache:
9188
${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' &&
92-
contains(steps.pr-labels.outputs.labels, ' ci-skip-cache ')) }}
89+
contains(toJSON(github.event.pull_request.labels.*.name), 'ci-skip-cache')) }}

0 commit comments

Comments
 (0)