Merge pull request #1 from yec-akamai/fix-workflow-issue #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ensure Docs are Compiled | |
on: | |
push: | |
jobs: | |
ensure-docs-compiled: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
- shell: bash | |
run: make generate | |
- shell: bash | |
run: | | |
if [[ -z "$(git status -s)" ]]; then | |
echo "OK" | |
else | |
echo "Docs have been updated, but the compiled docs have not been committed." | |
echo "Run 'make generate', and commit the result to resolve this error." | |
exit 1 | |
fi | |