Skip to content

Add workflows

Add workflows #7

Workflow file for this run

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.GITHUB_TOKEN }}"