Bump actions/setup-go from 5.1.0 to 5.2.0 (#346) #324
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 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 |