This repository was archived by the owner on May 6, 2025. It is now read-only.
Update workflow actions (#1950) #184
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: gendoc | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
gendoc: | |
runs-on: self-hosted | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
cache: false | |
- name: Print Go version | |
run: go version | |
- name: Run gendoc | |
working-directory: tools/gendoc | |
run: go mod tidy && go run main.go | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
title: "chore(gendoc): update docs" | |
commit-message: "chore(gendoc): update docs" | |
body: | | |
Generated new config documentation. | |
This PR is auto generated by [gendoc workflow](https://github.com/${{ github.repository }}/actions?query=workflow%3Agendoc). | |
branch: chore/gendoc | |
base: develop | |
add-paths: | | |
*.json | |
*.md |