-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: backport label ci
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: required labels | ||
|
||
on: | ||
pull_request: | ||
types: [opened, labeled, unlabeled, synchronize] | ||
branches: | ||
- "v25.x" | ||
|
||
jobs: | ||
backport_labels: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v45 | ||
|
||
- name: Check required labels | ||
# Skip this step and return success result for markdown only changes | ||
if: | | ||
steps.changed-files.outputs.any_changed == 'true' || | ||
steps.changed-files.outputs.any_deleted == 'true' || | ||
steps.changed-files.outputs.any_modified == 'true' | ||
uses: mheap/github-action-required-labels@v5 | ||
with: #Require one of the following labels | ||
mode: exactly | ||
count: 1 | ||
labels: "A:backport/v26.x" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters