Generate action documentation and automatically publish to wiki #12
Workflow file for this run
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: Documentation check | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
checkdocs: | |
name: Verify generated | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Set up GO | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23' | |
check-latest: true | |
- name: Generate docs | |
run: | | |
go generate | |
- name: Verify nothing to generate | |
run: | | |
if [[ "$(git diff --name-only -- generatedocs/generated/documentation.go)" != "" ]]; then | |
echo "documentation not generated" | |
exit 1 | |
fi |