Skip to content

github action to add in files as examples to markdown files

License

Notifications You must be signed in to change notification settings

NWylynko/markdown-add-files

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages