Commit ea52323
committed
Fix detection of the ci/no-release label in a push event
The release-main workflow is triggered by "push" event which
does not carry `github.event.pull_request.labels`.
Here we switch to GitHub CLI to lookup the PR from commit and
test for the "ci/no-release" label.
Note `gh pr list --search=COMMIT` may give several matches hence
the extra check with `grep "${GITHUB_SHA}"`.
Follow-up to #79151 parent bf22232 commit ea52323
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
0 commit comments