Skip to content

deps: bump golang.org/x/tools from 0.18.0 to 0.19.0 (#1409) #25

deps: bump golang.org/x/tools from 0.18.0 to 0.19.0 (#1409)

deps: bump golang.org/x/tools from 0.18.0 to 0.19.0 (#1409) #25

Workflow file for this run

name: Doc
on:
push:
branches: [master]
jobs:
generate_doc:
name: generate_doc
runs-on: ubuntu-latest
env:
PATH_OVERVIEW: './docs/overview.md'
permissions:
contents: write
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
ref: ${{ github.head_ref }}
go-version: stable
check-latest: true
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Generate docs
run: |
make docs
- name: Commit into master
uses: stefanzweifel/git-auto-commit-action@v5
id: auto-commit-action
with:
commit_message: auto generate doc [bot]
file_pattern: ${{ env.PATH_OVERVIEW }}
- name: Dispatches if doc changed
if: steps.auto-commit-action.outputs.changes_detected == 'true'
run: |
gh auth login --with-token <<< "${{ secrets.PUSH_DOCS_TOKEN }}"
gh api repos/go-critic/go-critic.github.io/dispatches \
--field event_type='update_doc' \
--field client_payload[content]="$(xz -z --stdout ${{ env.PATH_OVERVIEW }} | base64)"