forked from codeceptjs/CodeceptJS
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.23 KB
/
doc-generation.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
42
43
44
45
46
47
48
49
50
name: Update documentation after merge
on:
push:
branches:
- 3.x
jobs:
update-documentation:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [ 16.x ]
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install --legacy-peer-deps
- name: Configure git user
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: Update contributor faces
run: |
npm run update-contributor-faces
git add README.md
if ! git diff --cached --quiet; then
git commit -m "DOC: Update contributor faces" --no-verify
fi
- name: Generate and update documentation
run: |
npm run docs
git add docs/**/*.md
if ! git diff --cached --quiet; then
git commit -m "DOC: Autogenerate and update documentation" --no-verify
fi
- name: Push to the repo
run: git push --no-verify