Skip to content

workflow: create docs-check #1

workflow: create docs-check

workflow: create docs-check #1

Workflow file for this run

name: Docs Check
on:

Check failure on line 3 in .github/workflows/docs-check.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docs-check.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
pull_request:
branches:
- master
types:
- opened
- labeled
- unlabeled
jobs:
fail-if-docs-needed:
if: contains(github.event.pull_request.labels.*.name, 'docs-needed')
runs-on: ubuntu-latest
steps:
- name: Fail if PR needs accompanying docs to be written
run: |
echo "This change needs to be documented. Please get the docs approved, and change 'docs-needed' to 'docs-complete'."
exit 1