diff --git a/.github/workflows/rollup.yml b/.github/workflows/rollup.yml index 03293121..9080f3cc 100644 --- a/.github/workflows/rollup.yml +++ b/.github/workflows/rollup.yml @@ -76,14 +76,8 @@ jobs: run: bundle exec htmlproofer ./_site # Commit changes - - name: 💾 Commit rollup changes in doc + - name: 🚀 Commit & push changes to gh-pages run: | git config --local user.name "lwcc-ci" - git commit -m "CI: Update Sample Gallery from master" -a - - # Push changes to gh-pages - - name: 🚀 Push changes to gh-pages - uses: ad-m/github-push-action@master - with: - branch: 'gh-pages' - github_token: ${{ secrets.GITHUB_TOKEN }} + git add docs/* + git diff-index --quiet HEAD -- || git commit -m "CI: update Sample Gallery from master" -a && git push -f