Skip to content

🧹 Bump cnspec to v11.26.0 (#319) #275

🧹 Bump cnspec to v11.26.0 (#319)

🧹 Bump cnspec to v11.26.0 (#319) #275

name: Ensure Code is generated and Docs are compiled
on:
push:
jobs:
ensure-generate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: ${{ github.ref }}
- name: Import environment variables from file
run: cat ".github/env" >> $GITHUB_ENV
- name: Set up Go
uses: actions/[email protected]
with:
go-version: ">=${{ env.golang-version }}"
cache: false
- 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 build-docs', and commit the result to resolve this error."
exit 1
fi