github.com/goreleaser/nfpm/v2@v2.44.0/.github/workflows/generate.yml (about) 1 name: generate 2 3 on: 4 push: 5 branches: 6 - "main" 7 paths: 8 - ".github/workflows/generate.yml" 9 - "www/*" 10 - "cmd/*" 11 - "internal/cmd/*" 12 - "files/*" 13 workflow_dispatch: 14 permissions: 15 contents: read 16 jobs: 17 docs: 18 runs-on: ubuntu-latest 19 permissions: 20 contents: write 21 steps: 22 - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 23 - uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 24 with: 25 go-version: stable 26 - uses: go-task/setup-task@0ab1b2a65bc55236a3bc64cde78f80e20e8885c2 # v1.0.0 27 with: 28 repo-token: ${{ secrets.GITHUB_TOKEN }} 29 - run: "go install github.com/santhosh-tekuri/jsonschema/cmd/jv@latest" 30 - run: task docs:releases 31 env: 32 GITHUB_TOKEN: ${{ secrets.GH_PAT }} 33 - run: task docs:generate 34 - run: task schema:generate 35 - run: task schema:validate 36 - uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v7.0.0 37 with: 38 commit_message: "docs: update cmd docs" 39 branch: main