-
Notifications
You must be signed in to change notification settings - Fork 10
27 lines (26 loc) · 826 Bytes
/
main.yml
File metadata and controls
27 lines (26 loc) · 826 Bytes
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
on:
push:
branches: [main]
paths: ['README.md']
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.ADMIN_TOKEN }}
- name: Configure CI Git User
run: |
git config --global user.name '@hubs-creators-bot'
git config --global user.email 'hubs-creators-bot@users.noreply.github.com'
- run: |
curl https://raw.githubusercontent.com/ekalinin/github-markdown-toc/0.8.0/gh-md-toc -o gh-md-toc
chmod a+x gh-md-toc
./gh-md-toc --insert --no-backup --hide-footer README.md
rm gh-md-toc
- name: Do git actions
run: |
git commit -am "Automated TOC creation commit. [skip actions]"
git push