Skip to content

Commit 896f7bb

Browse files
authored
fix(ci): update trigger.dev ci to only push to staging on merge to staging & for prod as well (#1518)
1 parent 97f69a2 commit 896f7bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/trigger-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
run: bun install
3333

3434
- name: Deploy to Trigger.dev (Staging)
35-
if: github.ref == 'refs/heads/staging'
35+
if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
3636
working-directory: ./apps/sim
3737
run: npx --yes [email protected] deploy -e staging
3838

3939
- name: Deploy to Trigger.dev (Production)
40-
if: github.ref == 'refs/heads/main'
40+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
4141
working-directory: ./apps/sim
4242
run: npx --yes [email protected] deploy

0 commit comments

Comments
 (0)