From 4d45addd31a71f5dafaa475eeb8aaf143a2587b3 Mon Sep 17 00:00:00 2001 From: martian0x80 <26498920+martian0x80@users.noreply.github.com> Date: Fri, 17 May 2024 16:58:21 +0530 Subject: [PATCH] update --- .github/workflows/setup-predeploy-env.yml | 28 +++++++++++------------ 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/setup-predeploy-env.yml b/.github/workflows/setup-predeploy-env.yml index c9cbc9a..ff49bbd 100644 --- a/.github/workflows/setup-predeploy-env.yml +++ b/.github/workflows/setup-predeploy-env.yml @@ -24,16 +24,15 @@ jobs: text: "Development environment setup complete" color: "green" - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v5 + uses: EndBug/add-and-commit@v9 with: - commit_message: Automated changes - file_pattern: "public/*" + message: Automated changes + add: 'public/*' - name: "Run if changes have been detected" - if: steps.auto-commit-action.outputs.changes_detected == 'true' - run: echo "Changes!" - + if: steps.add-and-commit.outputs.pushed == 'true' + run: echo "Changes pushed!" - name: "Run if no changes have been detected" - if: steps.auto-commit-action.outputs.changes_detected == 'false' + if: steps.add-and-commit.outputs.pushed == 'false' run: echo "No Changes!" @@ -54,14 +53,13 @@ jobs: text: "Production environment setup complete" color: "green" - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v5 + uses: EndBug/add-and-commit@v9 with: - commit_message: Automated changes - file_pattern: "public/*" + message: Automated changes + add: 'public/*' - name: "Run if changes have been detected" - if: steps.auto-commit-action.outputs.changes_detected == 'true' - run: echo "Changes!" - + if: steps.add-and-commit.outputs.pushed == 'true' + run: echo "Changes pushed!" - name: "Run if no changes have been detected" - if: steps.auto-commit-action.outputs.changes_detected == 'false' - run: echo "No Changes!" + if: steps.add-and-commit.outputs.pushed == 'false' + run: echo "No Changes!" \ No newline at end of file