Skip to content

readme-scribe

readme-scribe #656

name: readme-scribe
on:
workflow_dispatch:
schedule:
- cron: '0 0 */1 * *'
push:
branches:
- 'main'
jobs:
readme-scribe:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: muesli/readme-scribe@master
with:
template: templates/README.md.tpl
writeTo: README.md
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
- name: replace placeholder for badge tag
uses: jacobtomlinson/gha-find-replace@v2
with:
find: "badges_tag"
replace: |
<!--START_SECTION:badges-->
<!--END_SECTION:badges-->
include: README.md
- uses: stefanzweifel/git-auto-commit-action@c4b132ec2c77a21fcab564bd3c92610cee84b894
with:
commit_message: 'Update generated README'
branch: main
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit_user_name: github-actions[bot]
commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}