Skip to content

Commit 068305b

Browse files
mydeaclaude
andauthored
chore(ci): Replace pr-labels-action with native GitHub expressions (#20252)
## Summary - Replace the custom fork `mydea/pr-labels-action@fn/bump-node20` with built-in GitHub Actions expressions - Zero external dependencies needed — uses `github.event.pull_request.labels.*.name` directly ### Before ```yaml - name: Get PR labels id: pr-labels uses: mydea/pr-labels-action@fn/bump-node20 # ... contains(steps.pr-labels.outputs.labels, ' Gitflow ') contains(steps.pr-labels.outputs.labels, ' ci-skip-cache ') ``` ### After ```yaml # No action step needed # ... contains(toJSON(github.event.pull_request.labels.*.name), 'Gitflow') contains(toJSON(github.event.pull_request.labels.*.name), 'ci-skip-cache') ``` Both usages already gate on `github.event_name == 'pull_request'`, so the labels context is always available when needed. This also eliminates the Node.js 20 deprecation warning that `mydea/pr-labels-action` was causing. ## Test plan - [ ] CI metadata job runs successfully - [ ] Gitflow label detection still works on PRs with the `Gitflow` label - [ ] `ci-skip-cache` label detection still works 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 73d51f2 commit 068305b

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), 'Gitflow')
86+
}}
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)