Skip to content

Commit a0f20cd

Browse files
Update yml 오류 제거
1 parent c4f4ffe commit a0f20cd

File tree

1 file changed

+22
-25
lines changed

1 file changed

+22
-25
lines changed

.github/workflows/update-README.yml

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,25 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
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

Comments
 (0)