Skip to content

Commit

Permalink
.github: actually fail workflow if docs have changed
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwan-opal committed Sep 21, 2022
1 parent 12f2de7 commit 3d8040b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: go generate
- name: Check for doc changes
id: check-changes
uses: mskri/[email protected]
- name: Fail if docs changed
if: steps.check-changes.outputs.outcome == failure()
run: echo "There are uncommitted changes"
run: echo "::set-output name=changed::$(git status --porcelain | wc -l)"
- name: Fail if docs need to be regenerated
if: steps.check-changes.outputs.changed != 0
run: exit 1

0 comments on commit 3d8040b

Please sign in to comment.