From 29cbe7fe021afb50a8a19ee112a4b4c291ff1d97 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Tue, 23 Nov 2021 02:01:36 +0000 Subject: [PATCH] Revert test-build-deploy.yml to only run tests on PRs or direct commits. --- server/.github/workflows/test-build-deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/.github/workflows/test-build-deploy.yml b/server/.github/workflows/test-build-deploy.yml index 8fe84c799..b0833530a 100644 --- a/server/.github/workflows/test-build-deploy.yml +++ b/server/.github/workflows/test-build-deploy.yml @@ -2,6 +2,7 @@ name: Test, Build, Deploy on: push: + branches: [master, develop] pull_request: branches: [master, develop] workflow_dispatch: @@ -55,7 +56,7 @@ jobs: docker-push: runs-on: ubuntu-latest needs: [test] - if: github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref == 'ref/heads/master') + if: github.event_name == 'push' steps: - name: Checkout uses: actions/checkout@v2 @@ -94,7 +95,7 @@ jobs: deploy: runs-on: ubuntu-latest needs: [docker-push] - if: github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref == 'ref/heads/master') + if: github.event_name == 'push' steps: - name: Deploy to staging if: github.ref == 'refs/heads/develop'