Merge pull request #58 from nitram509/dependabot/go_modules/golang.or… #97
This file contains 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 README.md code blocks | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: "setup go" | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.20' | |
- name: "build binary and print --help" | |
run: | | |
go build -o ntgrrc . | |
./ntgrrc --help-all >help.txt | |
- name: Markdown autodocs | |
uses: dineshsonachalam/markdown-autodocs@v1.0.4 | |
with: | |
# Optional, defaults to author of the commit that triggered the run | |
commit_author: Author <actions@github.com> | |
# Optional, defaults to "actions@github.com" | |
commit_user_email: actions@github.com | |
# Optional, but recommended | |
# Defaults to "Apply automatic changes" | |
commit_message: Apply automatic changes | |
# Optional branch name where commit should be pushed to. | |
# Defaults to the current branch. | |
# branch: feature-123 | |
# Optional output file paths, defaults to '[./README.md]'. | |
output_file_paths: '[./README.md]' | |
# Categories to automatically sync or transform its contents in the markdown files. | |
# Defaults to '[code-block,json-to-html-table,workflow-artifact-table]' | |
categories: '[code-block]' |