Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

ci: github action to deploy background workers

Brad Barbin59b456a2a831
diff --git a/.github/workflows/trigger.yml b/.github/workflows/trigger.yml
new file mode 100644
index 0000000000..9bee87ee62
--- /dev/null
+++ b/.github/workflows/trigger.yml
@@ -0,0 +1,30 @@
+name: Deploy Background Jobs
+
+on:
+ push:
+ branches:
+ - main
+ paths:
+ - "apps/carbon/app/trigger/**"
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Use Node.js 20.x
+ uses: actions/setup-node@v4
+ with:
+ node-version: "20.x"
+
+ - name: Install dependencies
+ run: npm install
+
+ - name: 🚀 Deploy Trigger.dev
+ env:
+ TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
+ run: |
+ cd apps/carbon
+ npx trigger.dev@latest deploy
diff --git a/apps/carbon/app/trigger/send-email-resend.ts b/apps/carbon/app/trigger/send-email-resend.ts
index de8360debb..6035fc24c7 100644
--- a/apps/carbon/app/trigger/send-email-resend.ts
+++ b/apps/carbon/app/trigger/send-email-resend.ts
@@ -37,7 +37,7 @@ export const sendEmailResendTask = task({
integration?.data?.metadata
);
- console.info(integrationMetadata.data?.fromEmail ?? "no email found");
+ console.info(integrationMetadata.data?.fromEmail ?? "No email found");
if (!integrationMetadata.success || integration?.data?.active !== true) {
return { success: false, message: "Invalid integration or inactive" };