Skip to content

Commit d87a05e

Browse files
committed
fix: Attempt to fix formating TOC
1 parent c36b046 commit d87a05e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/format.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,20 @@ on:
33
pull_request:
44
jobs:
55
format:
6-
name: Format docs
6+
name: Format
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout
1010
uses: actions/checkout@v2
11+
with:
12+
ref: ${{ github.head_ref }}
1113
- name: Install
1214
uses: bahmutov/npm-install@v1
1315
- name: Generate TOC
1416
run: npm run toc
1517
- name: Commit changes
16-
run: |
17-
git config --global user.name 'Denys Dovhan'
18-
git config --global user.email '[email protected]'
19-
git commit -am "Update TOC"
20-
git push
18+
uses: stefanzweifel/git-auto-commit-action@v4
19+
with:
20+
commit_message: Update TOC
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)