diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index a20c3602..ae048158 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -16,12 +16,10 @@ jobs: - name: Check if there are changes to POLICIES.md id: changes - uses: UnicornGlobal/has-changes-action@v1.0.10 - with: - pathspec: POLICIES.md + run: echo "changed=$(git status --porcelain POLICIES.md | wc -l)" >> $GITHUB_OUTPUT - name: Fail if POLICIES.md changes found - if: steps.changes.outputs.changed == 1 + if: steps.changes.outputs.changed >= 1 run: | echo "Uncommited changes to POLICIES.md exist. Failing." exit 1