Example USAGE:
- Create
.md
file with checklist (Look atexamples/
dir) - Create
.github/workflows/nfr_on_push.yaml
with content:
name: NFR documents changed
on:
workflow_dispatch:
push:
paths:
- "*.md"
jobs:
push:
name: NFR documents changed
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Update NFR badges
uses: dodopizza/gha-checklist-badges@main
with:
readme-fname: README.md
nfr-fnames: ChecklistFileOne.md ChecklistFileTwo.md
github_token: ${{ secrets.GITHUB_TOKEN }}
- Now, your
README.md
will be automatically updated with auto-generated badges followingChecklistFileOne.md
/ChecklistFileTwo.md
changes