Skip to content

Commit

Permalink
ci: docs-check: Fix code
Browse files Browse the repository at this point in the history
TOML > YAML
  • Loading branch information
patrickelectric authored and rafaellehmkuhl committed Sep 6, 2023
1 parent a19762f commit 5568d3f
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
name: Docs Check

on:
pull_request:
branches:
- master
types:
- opened
- labeled
- unlabeled
on:
pull_request:
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
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

0 comments on commit 5568d3f

Please sign in to comment.