Add workflows #8
Workflow file for this run
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
on: | |
pull_request: | |
branches: [main] | |
permissions: | |
# Goreadme needs permissions to update pull requests comments and change contents. | |
pull-requests: write | |
contents: write | |
jobs: | |
goreadme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
set-safe-directory: /github/workspace | |
- name: Update readme according to Go doc | |
uses: posener/goreadme@v1 | |
with: | |
badge-travisci: "true" | |
badge-codecov: "true" | |
badge-godoc: "true" | |
badge-goreportcard: "true" | |
# Optional: Token allows goreadme to comment the PR with diff preview. | |
github-token: "${{ secrets.PAT }}" |