Skip to content

Merge pull request #223 from ethanmdavidson/dependabot/github_actions… #292

Merge pull request #223 from ethanmdavidson/dependabot/github_actions…

Merge pull request #223 from ethanmdavidson/dependabot/github_actions… #292

name: Ensure Docs are Compiled
on:
push:
jobs:
ensure-docs-compiled:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: 'go.mod'
cache: true
- 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