Skip to content

Commit

Permalink
ci: backport label ci
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Aug 28, 2024
1 parent 1f6db39 commit ac2979c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/required-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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/[email protected]

- 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: "A:backport/v26.x"

0 comments on commit ac2979c

Please sign in to comment.