From 02817de72a8e766bf20e477efe54f15fc555e8b2 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 27 Oct 2024 22:09:02 +0100 Subject: [PATCH] Push only when there are changes --- .github/workflows/copyright_notice.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/copyright_notice.yml b/.github/workflows/copyright_notice.yml index 43fd020..442725d 100644 --- a/.github/workflows/copyright_notice.yml +++ b/.github/workflows/copyright_notice.yml @@ -25,9 +25,8 @@ jobs: if [ -n "$(git status --porcelain)" ]; then echo "there are changes"; + git commit -m "Add copyright notice" + git push else echo "no changes"; fi - git commit -m "Add copyright notice" - - name: Push changes - run: git push \ No newline at end of file