Skip to content

Commit

Permalink
Fix GHA to automatically commit the doc built, only if there are new …
Browse files Browse the repository at this point in the history
…changes (#2)
  • Loading branch information
victorgz authored Jul 15, 2020
1 parent d1e7c65 commit 076c801
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/rollup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 076c801

Please sign in to comment.