chore(deps): update module go:github.com/golangci/golangci-lint/v2/cm… #301
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: Update docs | |
| permissions: {} | |
| on: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| update-docs: | |
| name: Update Docs | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # needed to commit generated documentation updates | |
| pull-requests: write # needed to open a PR with the doc changes | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/setup | |
| - name: Update docs | |
| id: update-docs | |
| run: | | |
| go run ./docs/update.go | |
| git add . | |
| if git diff --staged --exit-code --quiet; then | |
| echo "No changes." | |
| else | |
| echo "Changes detected." | |
| echo "diff=true" >> "${GITHUB_OUTPUT}" | |
| fi | |
| - uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9 | |
| if: ${{ steps.update-docs.outputs.diff == 'true' }} | |
| with: | |
| token: ${{ github.token }} | |
| title: "chore: Update docs" | |
| body: ${{ github.sha }} | |
| branch: docs/update |