auto: code-gen upgrade handler v28 #18849
Workflow file for this run
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
name: required labels | |
on: | |
pull_request: | |
types: [opened, labeled, unlabeled, synchronize] | |
branches: | |
- "main" | |
jobs: | |
state_compatability_labels: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/[email protected] | |
with: | |
files_ignore: | | |
**/*.md | |
**/*_test.go | |
tests/** | |
**/*.py | |
.github/workflows/*.yml | |
- 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 | |
env: | |
GITHUB_TOKEN: ${{ secrets.ADD_TO_PROJECT_PAT }} | |
with: #Require one of the following labels | |
mode: exactly | |
count: 1 | |
labels: "V:state/breaking, V:state/compatible/no_backport, V:state/compatible/backport" |