From 896f7bb0a094930b07297ac2a261aff5ad4dfe4d Mon Sep 17 00:00:00 2001 From: Waleed Date: Wed, 1 Oct 2025 13:22:04 -0700 Subject: [PATCH] fix(ci): update trigger.dev ci to only push to staging on merge to staging & for prod as well (#1518) --- .github/workflows/trigger-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/trigger-deploy.yml b/.github/workflows/trigger-deploy.yml index b37ad19dc..b8af076a6 100644 --- a/.github/workflows/trigger-deploy.yml +++ b/.github/workflows/trigger-deploy.yml @@ -32,11 +32,11 @@ jobs: run: bun install - name: Deploy to Trigger.dev (Staging) - if: github.ref == 'refs/heads/staging' + if: github.event_name == 'push' && github.ref == 'refs/heads/staging' working-directory: ./apps/sim run: npx --yes trigger.dev@4.0.4 deploy -e staging - name: Deploy to Trigger.dev (Production) - if: github.ref == 'refs/heads/main' + if: github.event_name == 'push' && github.ref == 'refs/heads/main' working-directory: ./apps/sim run: npx --yes trigger.dev@4.0.4 deploy