-
Notifications
You must be signed in to change notification settings - Fork 49
41 lines (35 loc) · 1.45 KB
/
wiki_TOC.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
31
32
33
34
35
36
37
38
39
40
41
# This is a basic workflow to help you get started with Actions
name: Wiki TOC
# Controls when the action will run.
on:
# Triggers the workflow on any change on the wiki (on the master branch)
#gollum: # This is triggered each time a file is changed on the wiki, including when the this script automatically run!
# Below: push on the wiki, for the master branch
#push:
# paths:
# - 'wiki/**'
# branches:
# - master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
wiki_toc:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
repository: ${{github.repository}}.wiki
ref: master
- run: |
ls
#curl https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc -o gh-md-toc
#chmod a+x gh-md-toc
# The ekalinin's github-markdown-toc script is executed directly from the wiki project, as
# it has been update to work on the github project.
# More info on this page: https://github.com/graphql-java-generator/graphql-maven-plugin-project/wiki/internal_howto_release#howto-update-the-wiki
./gh-md-toc --insert --no-backup *.md
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Auto update markdown TOC