Skip to content

Commit

Permalink
Update gitpage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ksw2000 authored Nov 15, 2024
1 parent 79f749b commit 7ac6234
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/gitpage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
mv ./example/index.md ./output/index.md
mv ./example/index.html ./output/webjs.html
- name: Check for changes
- name: commit and push
id: check_changes
run: |
cd output
Expand All @@ -41,11 +41,6 @@ jobs:
git config user.email "[email protected]"
git remote add secure-origin https://${{ secrets.NPM_CI }}@github.com/ksw2000/${{ github.event.repository.name }}
git checkout -b gh-pages
git diff --exit-code || echo "::set-output name=changes_detected::true"
- name: commit and push
if: steps.check_changes.outputs.changes_detected == 'true'
run: |
git add .
git commit -m "Generated by CI"
git push secure-origin gh-pages
git push -f secure-origin gh-pages

0 comments on commit 7ac6234

Please sign in to comment.