From f2f2134cd52578aa27ab3c96159d295cdd7cd312 Mon Sep 17 00:00:00 2001 From: David Pomerenke <46022183+davidpomerenke@users.noreply.github.com> Date: Fri, 26 Apr 2024 15:45:47 +0000 Subject: [PATCH] ci(deploy.yml): only trigger build-and-push and deploy on push --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6a1743aa..b61a5a92 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -61,6 +61,7 @@ jobs: ZENROWS_API_KEY: ${{ secrets.ZENROWS_API_KEY }} build-and-push: + if: ${{ github.event_name == 'push' }} needs: test runs-on: ubuntu-22.04 outputs: @@ -99,6 +100,7 @@ jobs: run: docker push --all-tags socialchangelab/media-impact-monitor deploy: + if: ${{ github.event_name == 'push' }} needs: build-and-push runs-on: ubuntu-22.04 steps: