@@ -18,28 +18,25 @@ jobs:
18
18
runs-on : ubuntu-latest
19
19
20
20
steps :
21
- - uses : actions/checkout@v3
22
- - name : Use Node.js 16.14.0
23
- uses : actions/setup-node@v3
24
- with :
25
- node-version : 16.14.0
26
- cache : ' npm'
27
- - name : install package
28
- run : npm install
29
- - name : build README.md
30
- run : npm run build
31
- - name : update README.md
32
- run : |
33
- git add .
34
- - name : get diff
35
- id : get_diff
36
- run : |
37
- git diff --quiet ./README.md || echo "::set-output name=new_changes_exist::true"
38
- - name : update README.md
39
- if : steps.get_diff.outputs.new_changes_exist == 'true'
40
- run : |
41
- git add ./README.md
42
- git config user.name github-actions
43
- git config user.email github-actions@github.com
44
- git commit -m "Automatic Update README.md"
45
- git push
21
+ - uses : actions/checkout@v3
22
+ - name : Use Node.js 16.14.0
23
+ uses : actions/setup-node@v3
24
+ with :
25
+ node-version : 16.14.0
26
+ cache : ' npm'
27
+ - name : install package
28
+ run : npm install
29
+ - name : build README.md
30
+ run : npm run build
31
+ - name : get diff
32
+ id : get_diff
33
+ run : |
34
+ git diff --quiet ./README.md || echo "::set-output name=new_changes_exist::true"
35
+ - name : update README.md
36
+ if : steps.get_diff.outputs.new_changes_exist == 'true'
37
+ run : |
38
+ git add ./README.md
39
+ git config user.name github-actions
40
+ git config user.email github-actions@github.com
41
+ git commit -m "Automatic Update README.md"
42
+ git push
0 commit comments