Skip to content

Commit

Permalink
Adding live example for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mmiranda committed Oct 28, 2021
1 parent 1eb560c commit c3fe9f3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This is a live example of using the markdown-index in your Github Actions.
# Simply copy it to your own repo and make sure you change the working-directory
name: live-example
on:
pull_request:
push:
branches:
- main
jobs:
markdown-index:
runs-on: ubuntu-latest
defaults:
run:
working-directory: test
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: satackey/[email protected]
continue-on-error: true

- name: Generate Markdown Index
id: markdown-index
run: docker run --rm --volume "$(pwd):/data" ghcr.io/mmiranda/markdown-index:latest --output live-example.md

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated markdown-index Documentation
file_pattern: "**/*.md"

0 comments on commit c3fe9f3

Please sign in to comment.