From b3801204044d0759e7b735a30409444ed0f1dbee Mon Sep 17 00:00:00 2001 From: Alastair Mooney Date: Tue, 8 Oct 2024 10:18:59 +0100 Subject: [PATCH] Update README.md --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2fdbd0d..b49fdb7 100644 --- a/README.md +++ b/README.md @@ -234,9 +234,13 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" - name: Commit and Push Changes run: | - git add . - git commit -m "Automatically added GitHub issue links to TODOs" - git push origin main + git add -A + if [[ `git status --porcelain` ]]; then + git commit -m "Automatically added GitHub issue links to TODOs" + git push origin main + else + echo "No changes to commit" + fi ``` You will probably also want to use the setting `CLOSE_ISSUES: "true"`, to allow issues to be closed when a TODO is