Skip to content

Commit 7ac6234

Browse files
authored
Update gitpage.yml
1 parent 79f749b commit 7ac6234

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/gitpage.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
mv ./example/index.md ./output/index.md
3333
mv ./example/index.html ./output/webjs.html
3434
35-
- name: Check for changes
35+
- name: commit and push
3636
id: check_changes
3737
run: |
3838
cd output
@@ -41,11 +41,6 @@ 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 "::set-output name=changes_detected::true"
45-
46-
- name: commit and push
47-
if: steps.check_changes.outputs.changes_detected == 'true'
48-
run: |
4944
git add .
5045
git commit -m "Generated by CI"
51-
git push secure-origin gh-pages
46+
git push -f secure-origin gh-pages

0 commit comments

Comments
 (0)