Skip to content

Commit

Permalink
Refactor commit workflow to handle empty commits gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
Kseen715 committed Aug 8, 2024
1 parent 0d06da7 commit f9dc684
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/on-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
run: python ./src/runall.py
- name: "Commit results"
run: |
git config --global user.email ""
git config --global user.name "GitHub Actions"
git add .
git commit -m "Auto fracture run"
git push
git config --global user.email ""
git config --global user.name "GitHub Actions"
git add .
git commit -m "Auto fracture run" || echo "Nothing to commit"
git push || echo "Nothing to push"

0 comments on commit f9dc684

Please sign in to comment.