From f9dc68495ac2f60c03bb07789757e6e7ed95c522 Mon Sep 17 00:00:00 2001 From: kseen Date: Thu, 8 Aug 2024 19:43:19 +0300 Subject: [PATCH] Refactor commit workflow to handle empty commits gracefully --- .github/workflows/on-commit.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/on-commit.yml b/.github/workflows/on-commit.yml index 9819821..aeb2ac8 100644 --- a/.github/workflows/on-commit.yml +++ b/.github/workflows/on-commit.yml @@ -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 \ No newline at end of file + 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" \ No newline at end of file