Skip to content

[Github Actions] Labels: Add extra labels to check #15

[Github Actions] Labels: Add extra labels to check

[Github Actions] Labels: Add extra labels to check #15

Workflow file for this run

name: PR Analysis
on:
pull_request:
types: [synchronize, labeled, unlabeled]
permissions:
contents: read
pull-requests: read
jobs:
allowed-labels:
runs-on: ubuntu-latest
steps:

Check failure on line 11 in .github/workflows/pr-analysis.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr-analysis.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
- name: Return error if blocking labels are present in PR
run: echo "Labels on this PR prevent it from being merged. Please contact the repo owners for more information." && exit 1
if: ${{
contains(github.event.pull_request.labels.*.name, 'Branch Lockdown') ||
contains(github.event.pull_request.labels.*.name, 'DO NOT MERGE') ||
contains(github.event.pull_request.labels.*.name, 'Servicing-consider') ||
contains(github.event.pull_request.labels.*.name, 'Servicing-more-info') ||
contains(github.event.pull_request.labels.*.name, 'Servicing-rejected') ||
}}