Skip to content

Commit 79f749b

Browse files
committed
chore: fix gitpage.yml
1 parent d877d9d commit 79f749b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/gitpage.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
- name: generate example page by web js
2929
run: |
3030
mkdir output/js
31-
cp ./dist/web/hmd2html.min.js ./output/js
32-
cp ./example/index.md ./output/index.md
33-
cp ./example/index.html ./output/webjs.html
31+
mv ./dist/web/hmd2html.min.js ./output/js
32+
mv ./example/index.md ./output/index.md
33+
mv ./example/index.html ./output/webjs.html
3434
3535
- name: Check for changes
3636
id: check_changes
@@ -41,10 +41,10 @@ jobs:
4141
git config user.email "nodejs-ci@github.com"
4242
git remote add secure-origin https://${{ secrets.NPM_CI }}@github.com/ksw2000/${{ github.event.repository.name }}
4343
git checkout -b gh-pages
44-
git diff --exit-code || echo "Changes detected"
44+
git diff --exit-code || echo "::set-output name=changes_detected::true"
4545
4646
- name: commit and push
47-
if: steps.check_changes.outputs.exit-code != 0
47+
if: steps.check_changes.outputs.changes_detected == 'true'
4848
run: |
4949
git add .
5050
git commit -m "Generated by CI"

0 commit comments

Comments
 (0)