From e0dbe7ec6d23f53f5aed2b665c3c9d31c605715f Mon Sep 17 00:00:00 2001 From: martian0x80 <26498920+martian0x80@users.noreply.github.com> Date: Tue, 21 May 2024 00:26:21 +0530 Subject: [PATCH] Update on preview workflow --- .github/workflows/setup-predeploy-env.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/setup-predeploy-env.yml b/.github/workflows/setup-predeploy-env.yml index c93ca74..8828573 100644 --- a/.github/workflows/setup-predeploy-env.yml +++ b/.github/workflows/setup-predeploy-env.yml @@ -31,6 +31,8 @@ jobs: with: message: Automated changes add: 'public/*' + if: ${{ github.event_name == 'pull_request' }} + push: origin HEAD:${{ github.head_ref }} - name: "Run if changes have been detected" if: steps.add-and-commit.outputs.pushed == 'true' run: echo "Changes pushed!"