From f1549ab56342842d0721a8026fb83ebe40da7dc0 Mon Sep 17 00:00:00 2001 From: ereti <43418802+ereti@users.noreply.github.com> Date: Thu, 28 Oct 2021 03:16:18 +0100 Subject: [PATCH] Update test-build-deploy.yml --- server/.github/workflows/test-build-deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/.github/workflows/test-build-deploy.yml b/server/.github/workflows/test-build-deploy.yml index 6cef0cb9b..c91a59624 100644 --- a/server/.github/workflows/test-build-deploy.yml +++ b/server/.github/workflows/test-build-deploy.yml @@ -50,6 +50,7 @@ jobs: docker-push: runs-on: ubuntu-latest needs: [test] + if: github.event_name == 'push' steps: - name: Checkout uses: actions/checkout@v2 @@ -88,7 +89,7 @@ jobs: deploy: runs-on: ubuntu-latest needs: [docker-push] - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' && github.event_name == 'push' steps: - name: Run deploy script on server uses: appleboy/ssh-action@master