-
-
Notifications
You must be signed in to change notification settings - Fork 16
48 lines (38 loc) · 1.02 KB
/
generate-readme.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
name: Generate README
on:
workflow_call:
jobs:
generate-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout awesome-nan
uses: actions/checkout@v2
with:
repository: nanlabs/awesome-nan
path: awesome-nan
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup Deno
uses: denolib/setup-deno@v2
with:
deno-version: v1.30
- name: Generate README
run: |
# Generate the README
./awesome-nan/tools/readme-generator/main.ts README.md.tmpl examples.json
- name: Run prettier
run: npx prettier --write README.md
- name: Run markdownlint
uses: articulate/actions-markdownlint@v1
with:
fix: true
files: README.md
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
message: "Update README"
add: README.md