Skip to content

Commit 35d857e

Browse files
fix(trigger): inject project id env var in correctly (#1520)
1 parent 6e63eaf commit 35d857e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/trigger-deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
cancel-in-progress: false
1414
env:
1515
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
16+
TRIGGER_PROJECT_ID: ${{ secrets.TRIGGER_PROJECT_ID }}
1617

1718
steps:
1819
- name: Checkout code
@@ -32,11 +33,12 @@ jobs:
3233
run: bun install
3334

3435
- name: Deploy to Trigger.dev (Staging)
35-
if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
36+
if: github.ref == 'refs/heads/staging'
3637
working-directory: ./apps/sim
3738
run: npx --yes trigger.dev@4.0.4 deploy -e staging
3839

3940
- name: Deploy to Trigger.dev (Production)
40-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
41+
if: github.ref == 'refs/heads/main'
4142
working-directory: ./apps/sim
4243
run: npx --yes trigger.dev@4.0.4 deploy
44+

apps/sim/trigger.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig } from '@trigger.dev/sdk'
22
import { env } from './lib/env'
33

44
export default defineConfig({
5-
project: env.TRIGGER_PROJECT_ID ?? '',
5+
project: env.TRIGGER_PROJECT_ID!,
66
runtime: 'node',
77
logLevel: 'log',
88
maxDuration: 600,

0 commit comments

Comments
 (0)