Skip to content

Commit

Permalink
Merge pull request #504 from okp4/ci/report-diff-for-lint-doc
Browse files Browse the repository at this point in the history
ci(workflow): report diff on generated documentation discrepancy
  • Loading branch information
ccamel authored Apr 1, 2024
2 parents 25af4e3 + 1d08be0 commit e1ade2a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
workflow_call:

push:
branches: [main]
branches: [ main ]

pull_request:
branches: [main]
branches: [ main ]

concurrency:
group: lint-${{ github.ref }}
Expand Down Expand Up @@ -365,6 +365,10 @@ jobs:
run: |
echo "❌ Documentation files has been updated."
echo " Changed files : ${{ steps.verify-changed-docs-files.outputs.changed_files }}"
git diff --name-only | grep 'docs/' | while read file; do
echo "‣ Changes in $file:"
git diff HEAD $file
done
echo "Please generate docs using \`cargo make docs-generate\` then commit this new documentation."
exit 1
Expand Down

0 comments on commit e1ade2a

Please sign in to comment.