From faae0466ad0118869f2f16480c710bc47bce7c45 Mon Sep 17 00:00:00 2001 From: stam Date: Sun, 17 Jan 2021 03:24:38 +0300 Subject: [PATCH] Update json-master.yml --- .github/workflows/json-master.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/json-master.yml b/.github/workflows/json-master.yml index bd6cc8f..2aa9557 100644 --- a/.github/workflows/json-master.yml +++ b/.github/workflows/json-master.yml @@ -41,6 +41,15 @@ jobs: ls -las ./update.sh cd .. + + - name: "Run if changes have been detected" + if: steps.auto-commit-action.outputs.changes_detected == 'true' + run: echo "Changes!" + + - name: "Run if no changes have been detected" + if: steps.auto-commit-action.outputs.changes_detected == 'false' + run: echo "No Changes!" + - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4 with: @@ -48,7 +57,4 @@ jobs: commit_user_name: stamepicmorg # defaults to "GitHub Actions" commit_user_email: stamepicmorg@users.noreply.github.com # defaults to "actions@github.com" commit_author: stamepicmorg # defaults to author of the commit that triggered the run - if: steps.auto-commit-action.outputs.changes_detected == 'false' - run: echo "No Changes!" - if: steps.auto-commit-action.outputs.changes_detected == 'true' - run: echo "Changes!" +