forked from w3c/epub-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 990 Bytes
/
generate.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
name: Automatic Report generation
on:
push:
branches: [main]
paths: ["reports/**", "tests/**", "src/**", "docs/drafts/*.html", "docs/drafts/config.json"]
jobs:
build:
name: Generate Reports using NodeJS
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run generate
- run: npm run respec
- name: setup git config
run: |
git config user.name "Report generation bot"
git config user.email "<>"
- name: commit the changes
run: |
git add docs/*.html
git add docs/drafts/fragments/*.html
git add docs/drafts/*.html
git add reports/xx-*.json
git add docs/opds/*.json
git commit -am "Automated report generation"
git push origin main