Skip to content

Commit

Permalink
fix: Avoid attempting to commit if nothing changed
Browse files Browse the repository at this point in the history
  • Loading branch information
abensonca committed Aug 3, 2023
1 parent 3f47c1a commit 3ceb8d4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ jobs:
git config --local user.email "[email protected]"
git config --local user.name "github-action-validate"
git add doc
git commit -m "Update documentation"
git push --set-upstream origin gh-pages
git diff --cached --quiet
if [ $? -eq 1 ]; then
git commit -m "Update documentation"
git push --set-upstream origin gh-pages
fi
if: github.event_name != 'pull_request'

0 comments on commit 3ceb8d4

Please sign in to comment.