Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/docs-on-pr-close.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Update docs (PR merged to main)

on:
pull_request:
types: [closed]
branches: [main]

permissions:
contents: write

concurrency:
group: update-docs-main
cancel-in-progress: false

jobs:
generate-and-push:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
ref: main
fetch-depth: 0
persist-credentials: true

- name: Set up Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: 1.25

- name: Generate markdown documentation
run: make docs

- name: Commit and push if docs changed
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
with:
commit_message: "chore: regenerate CLI documentation"
branch: main
file_pattern: "docs/*.md"
disable_globbing: true
Loading