demike / markdown-add-files

github action to add in files as examples to markdown files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

markdown-add-files

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

example

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 }}

About

github action to add in files as examples to markdown files

License:MIT License


Languages

Language:TypeScript 100.0%