github action to add in files as examples to markdown files
this action finds markdown files and replaces <!-- add-file: ./app.tsx -->
with the code from that file
this is a very simple action that add in the files and then pushes the built markdown to the repo
name: build markdown
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: nwylynko/markdown-add-files@master
- uses: EndBug/add-and-commit@v4
with:
author_name: README builder
message: 'Updated Readme'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}