Skip to content

Replace PR label checker #3

Replace PR label checker

Replace PR label checker #3

Workflow file for this run

.github/workflows/check_pr_label.ymlname: Check Label on PR

Check failure on line 1 in .github/workflows/check_pr_label.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/check_pr_label.yml

Invalid workflow file

The workflow is not valid. .github/workflows/check_pr_label.yml (Line: 1, Col: 1): Unexpected value '.github/workflows/check_pr_label.ymlname'
on:
pull_request:
types: [opened, synchronize, labeled, unlabeled]
jobs:
check_pr_label:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for all branches and tags
- name: Check if the PR contains the label validation or no validation
id: check_pr_label
if: |
! contains( github.event.pull_request.labels.*.name, 'validation') && ! contains( github.event.pull_request.labels.*.name, 'no validation')
run: |
echo "Neither 'validation' nor 'no validation' labels are present."
exit 1 # Exit with a failure