diff --git a/.github/pr_labels.yml b/.github/pr_labels.yml deleted file mode 100644 index 8db6d109..00000000 --- a/.github/pr_labels.yml +++ /dev/null @@ -1,6 +0,0 @@ -version: "1" -invalidStatus: "pending" -labelRule: - values: - - "validation" - - "no validation" diff --git a/.github/workflows/pr_labels.yml b/.github/workflows/pr_labels.yml new file mode 100644 index 00000000..56b02ed6 --- /dev/null +++ b/.github/workflows/pr_labels.yml @@ -0,0 +1,20 @@ +name: PR Label Validation + +on: + pull_request: + types: [opened, synchronize, reopened, labeled] + +jobs: + validate-labels: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Validate PR labels + uses: actions-ecosystem/action-label-check@v1 + with: + labels: | + validation + no validation \ No newline at end of file