Skip to content

Commit

Permalink
restore quite fail for commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Nov 1, 2024
1 parent 67e8fab commit 1ec90bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/actions/commit_and_push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,9 @@ runs:
# Add and commit changes if there are any
git add --all
git commit -m "${{ inputs.commit-message }}"
git push origin "${{ inputs.branch-name }}"
if ! git diff --cached --quiet; then
git commit -m "${{ inputs.commit-message }}"
git push origin "${{ inputs.branch-name }}"
else
echo "No changes to commit. Skipping commit and push."
fi

0 comments on commit 1ec90bb

Please sign in to comment.