Skip to content

Commit 85163c7

Browse files
committed
update action sintax
1 parent 763bec0 commit 85163c7

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
name: render readme
1+
name: Convert README.md to HTML and Publish
22

3-
# Controls when the action will run
43
on:
54
push:
65
branches: master
@@ -12,17 +11,20 @@ jobs:
1211
contents: write
1312
id-token: write
1413
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-node@v3
17-
with:
18-
node-version: 18
19-
registry-url: 'https://registry.npmjs.org'
14+
- name: Checkout repo
15+
uses: actions/checkout@v3
16+
17+
- name: Setup NodeJS
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 18
21+
registry-url: 'https://registry.npmjs.org'
2022

2123
- name: Test Converts markdown text to HTML
2224
uses: ./
23-
with:
24-
source: README-zh.md
25-
output: index.html
26-
style: 'body { margin: 0; }'
27-
github-corners: https://github.com/jaywcjlove/markdown-to-html-cli
28-
favicon: data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🌐</text></svg>
25+
with:
26+
source: README-zh.md
27+
output: index.html
28+
style: 'body { margin: 0; }'
29+
github-corners: https://github.com/vsouza/awesome-ios
30+
favicon: data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🌐</text></svg>

0 commit comments

Comments
 (0)