hugo-toha/.github/workflows/enforce-lablel.yml
hossainemruz 1c78123190 Separate label enforcer job to separate workflow
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2024-09-20 06:40:01 +06:00

16 lines
582 B
YAML

name: Label Enforcer
# Run action on pull request creation, reopening, or label changes
on:
pull_request:
types: [opened, reopened, labeled, unlabeled]
jobs:
# Ensure that PR has desired labels
enforce-label:
runs-on: ubuntu-latest
steps:
- uses: yogevbd/enforce-label-action@2.2.2
with:
REQUIRED_LABELS_ANY: "automerge,breaking-change,bug-fix,enhancement,feature,translation"
REQUIRED_LABELS_ANY_DESCRIPTION: "The PR must have at least one these labels: ['automerge','breaking-change','bug-fix','enhancement','feature','translation']"