From bb5e56a8f83fb76950791c843572306a86f124f6 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Fri, 16 Dec 2022 17:24:11 +0000 Subject: [PATCH] github/submodule-update: Needs an 'else' to actually work * Somehow this had been left in a state where it would always signal "no changes". --- .github/workflows/submodule-update.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/submodule-update.yml b/.github/workflows/submodule-update.yml index 8ed83d31..11082721 100644 --- a/.github/workflows/submodule-update.yml +++ b/.github/workflows/submodule-update.yml @@ -33,12 +33,14 @@ jobs: continue-on-error: true run: | changes=$(git status --porcelain) + git status --porcelain if [ -n "${changes}" ]; then echo '::set-output changes=true' + else + echo '::set-output changes=false' + exit 0 fi - echo '::set-output changes=false' - exit 0 - name: Create submodules changes branch if: steps.check_for_changes.outputs.changes == 'true'