Skip to content

Commit cff3feb

Browse files
author
Furkhat Kasymov Genii Uulu
committed
chore: fix github workflow for docs check
1 parent ae179fa commit cff3feb

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/documentation.yaml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,10 @@ jobs:
1414
uses: actions/checkout@v4
1515

1616
- name: Setup terraform-docs
17-
uses: terraform-docs/gh-actions@v1.2.0
17+
uses: terraform-docs/gh-actions@v1.4.1
1818
with:
1919
working-dir: .
2020
output-file: README.md
2121
output-method: inject
2222
git-push: "false"
23-
24-
- name: Check if README.md is up-to-date
25-
run: |
26-
make generate-doc
27-
if [ -n "$(git status --porcelain)" ]; then
28-
echo "ERROR: README.md is not up-to-date. Run 'make generate-doc' locally and commit the changes."
29-
echo
30-
git diff
31-
echo
32-
git status
33-
exit 1
34-
fi
35-
echo "README.md is up-to-date!"
23+
fail-on-diff: true

0 commit comments

Comments
 (0)