From 1a44ecd8e66294e2043344f294ea1c0407454a03 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 27 Oct 2024 21:59:23 +0100 Subject: [PATCH] Add debug message to check if there are changes --- .github/workflows/copyright_notice.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/copyright_notice.yml b/.github/workflows/copyright_notice.yml index ddc45b8..4a9f45b 100644 --- a/.github/workflows/copyright_notice.yml +++ b/.github/workflows/copyright_notice.yml @@ -22,6 +22,12 @@ jobs: git config --local user.email "bustikiller@bustikiller.com" git config --local user.name "Manuel Bustillo" git add . + + if [ -n "$(git status --porcelain)" ]; then + echo "there are changes"; + else + echo "no changes"; + fi git commit -m "Add copyright notice" - name: Push changes run: git push \ No newline at end of file