feat(#58): label plugin (#164) #22
This file contains hidden or 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: Docs | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-generated-docs: | |
| name: Check generated docs are up to date | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: Set up Go | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version: "1.25" | |
| - name: Regenerate docs | |
| run: go run ./cmd/docgen | |
| - name: Check for diff | |
| run: | | |
| if ! git diff --exit-code docs/; then | |
| echo "" | |
| echo "Generated docs are out of date. Run 'task gen' and commit the result." | |
| exit 1 | |
| fi |