-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 960 Bytes
/
example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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:
schedule:
# Runs every monday only for example. For real example, change it to push events
- cron: '0 0 * * 1'
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"