Skip to content

Commit

Permalink
only commit when changed to avoid fail at git
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheukting committed Aug 20, 2024
1 parent 5e55811 commit a0a5e9e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ jobs:
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "generated: $(date +'%Y-%m-%dT%H:%M:%S')"
git push
if ! git diff-index --quiet HEAD --; then
git commit -m "generated: $(date +'%Y-%m-%dT%H:%M:%S')"
git push
fi

0 comments on commit a0a5e9e

Please sign in to comment.