Repository: liam-hq/liam
Pull request #928: Trigger dev staging deploy
Author: login: hoshinotsuyoshi
Created: 2025-03-18T09:21:50Z | Merged: 2025-03-19T00:36:14Z

tested: https://github.com/liam-hq/liam/pull/928/commits/8d7d6efc7443cca0ba93fc2e0573264efbcf18dc , https://github.com/liam-hq/liam/actions/runs/13920200751/job/38951427512




## Issue

- resolve:

## Why is this change needed?
<!-- Please explain briefly why this change is necessary -->

## What would you like reviewers to focus on?
<!-- What specific aspects are you requesting review for? -->

## Testing Verification
<!-- Please describe how you verified these changes in your local environment using text/images/video -->

## What was done
<!-- This section will be filled by PR-Agent when the Pull Request is opened -->

pr_agent:summary

## Detailed Changes
<!-- This section will be filled by PR-Agent when the Pull Request is opened -->

pr_agent:walkthrough

## Additional Notes
<!-- Any additional information for reviewers -->



Diff:
diff --git a/.github/workflows/trigger_dev.yml b/.github/workflows/trigger_dev_production.yml
similarity index 91%
rename from .github/workflows/trigger_dev.yml
rename to .github/workflows/trigger_dev_production.yml
index ecb74f48ef..380b841e9b 100644
--- a/.github/workflows/trigger_dev.yml
+++ b/.github/workflows/trigger_dev_production.yml
@@ -1,4 +1,4 @@
-name: trigger_dev
+name: trigger_dev_production
 on:
   push:
     branches:
@@ -18,7 +18,7 @@ jobs:
       - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
       - uses: ./.github/actions/pnpm-setup
 
-      - name: Deploy to trigger.dev prod
+      - name: Deploy to trigger.dev production
         shell: bash
         env:
           TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
@@ -33,7 +33,7 @@ jobs:
         env:
           INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_CLI_CI_WEBHOOK_URL }}
         with:
-          text: "Deploy to trigger.dev prod Failure"
+          text: "Deploy to trigger.dev production Failure"
           attachments: |
             [
               {
diff --git a/.github/workflows/trigger_dev_staging.yml b/.github/workflows/trigger_dev_staging.yml
new file mode 100644
index 0000000000..a8994a6f9e
--- /dev/null
+++ b/.github/workflows/trigger_dev_staging.yml
@@ -0,0 +1,52 @@
+name: trigger_dev_staging
+on:
+  push:
+    branches:
+      - staging
+    path:
+      - frontend/apps/app/
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
+jobs:
+  trigger_dev_staging:
+    runs-on: ubuntu-latest
+    timeout-minutes: 15
+    steps:
+      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+      - uses: ./.github/actions/pnpm-setup
+
+      - name: Deploy to trigger.dev staging
+        shell: bash
+        env:
+          TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
+          TRIGGER_PROJECT_ID: ${{ vars.TRIGGER_PROJECT_ID }}
+        run: |
+          cd frontend/apps/app/
+          pnpm dlx trigger.dev@latest deploy --env staging
+
+      - name: Slack Notification on Failure
+        if: failure()
+        uses: tokorom/action-slack-incoming-webhook@d57bf1eb618f3dae9509afefa70d5774ad3d42bf # v1.3.0
+        env:
+          INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_CLI_CI_WEBHOOK_URL }}
+        with:
+          text: "Deploy to trigger.dev staging Failure"
+          attachments: |
+            [
+              {
+                "color": "bad",
+                "fields": [
+                  {
+                    "title": "Result",
+                    "value": "failure"
+                  },
+                  {
+                    "title": "Job URL",
+                    "value": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
+                  }
+                ]
+              }
+            ]


Reviews:
user: login: hoshinotsuyoshi
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-18T10:32:41Z
user: login: sasamuku
body: LGTM🚀
state: APPROVED
author_association: MEMBER
submitted_at: 2025-03-19T00:34:19Z

Review comments:
diff_hunk: @@ -0,0 +1,52 @@
+name: trigger_dev_staging
+on:
+  push:
+    branches:
+      - staging
+    path:
+      - frontend/apps/app/
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
+jobs:
+  trigger_dev_staging:
+    runs-on: ubuntu-latest
+    timeout-minutes: 15
+    steps:
+      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+      - uses: ./.github/actions/pnpm-setup
+
+      - name: Deploy to trigger.dev staging
+        shell: bash
+        env:
+          TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
+          TRIGGER_PROJECT_ID: ${{ vars.TRIGGER_PROJECT_ID }}
path: .github/workflows/trigger_dev_staging.yml
user: login: hoshinotsuyoshi
body: 📝  TRIGGER_PROJECT_ID value is the same as production

created_at: 2025-03-18T10:32:41Z
author_association: MEMBER
diff_hunk: @@ -0,0 +1,52 @@
+name: trigger_dev_staging
+on:
+  push:
+    branches:
+      - staging
+    path:
+      - frontend/apps/app/
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
+jobs:
path: .github/workflows/trigger_dev_staging.yml
user: login: sasamuku
body: 📝
I wondered if it would be possible to make it a reusable workflow, but since it is not a large amount of code, it would be fine.
created_at: 2025-03-19T00:34:10Z
author_association: MEMBER

PR comments:
user: login: changeset-bot[bot]
created_at: 2025-03-18T09:21:54Z
body: ###  ⚠️  No Changeset found

Latest commit: 8d7d6efc7443cca0ba93fc2e0573264efbcf18dc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. **If these changes should result in a version bump, you need to add a changeset.**

<details><summary>This PR includes no changesets</summary>

  When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

</details>

[Click here to learn what changesets are, and how to add one](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md).

[Click here if you're a maintainer who wants to add a changeset to this PR](https://github.com/liam-hq/liam/new/trigger_dev_staging_deploy?filename=.changeset/sharp-clocks-switch.md&value=---%0A%0A---%0A%0ATrigger%20dev%20staging%20deploy%0A)


author_association: NONE
user: login: vercel[bot]
created_at: 2025-03-18T09:21:54Z
body: [vc]: #Z6kDs2eZ96unyd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G9yeSI6ImZyb250ZW5kL2FwcHMvYXBwIiwiaW5zcGVjdG9yVXJsIjoiaHR0cHM6Ly92ZXJjZWwuY29tL3JvdXRlLTA2LWNvcmUvbGlhbS1hcHAvQmZNVVNKRXFBUWVZZEZlQ296WTdpeWdldGR3QyIsInByZXZpZXdVcmwiOiJsaWFtLWFwcC1naXQtdHJpZ2dlcmRldnN0YWdpbmdkZXBsb3ktcm91dGUtMDYtY29yZS52ZXJjZWwuYXBwIiwibmV4dENvbW1pdFN0YXR1cyI6IkRFUExPWUVEIiwibGl2ZUZlZWRiYWNrIjp7InJlc29sdmVkIjowLCJ1bnJlc29sdmVkIjowLCJ0b3RhbCI6MCwibGluayI6ImxpYW0tYXBwLWdpdC10cmlnZ2VyZGV2c3RhZ2luZ2RlcGxveS1yb3V0ZS0wNi1jb3JlLnZlcmNlbC5hcHAifX1dfQ==
**The latest updates on your projects**. Learn more about [Vercel for Git ↗︎](https://vercel.link/github-learn-more)

| Name | Status | Preview | Comments | Updated (UTC) |
| :--- | :----- | :------ | :------- | :------ |
| **liam-app** | ✅ Ready ([Inspect](https://vercel.com/route-06-core/liam-app/BfMUSJEqAQeYdFeCozY7iygetdwC)) | [Visit Preview](https://liam-app-git-triggerdevstagingdeploy-route-06-core.vercel.app) | 💬 [**Add feedback**](https://vercel.live/open-feedback/liam-app-git-triggerdevstagingdeploy-route-06-core.vercel.app?via=pr-comment-feedback-link) | Mar 18, 2025 10:38am |
| **liam-erd-sample** | ✅ Ready ([Inspect](https://vercel.com/route-06-core/liam-erd-sample/Ae5fgXrGhAATrgt1dwub56W752wQ)) | [Visit Preview](https://liam-erd-sample-git-triggerdevstagingdeploy-route-06-core.vercel.app) | 💬 [**Add feedback**](https://vercel.live/open-feedback/liam-erd-sample-git-triggerdevstagingdeploy-route-06-core.vercel.app?via=pr-comment-feedback-link) | Mar 18, 2025 10:38am |

<details><summary>4 Skipped Deployments</summary>

| Name | Status | Preview | Comments | Updated (UTC) |
| :--- | :----- | :------ | :------- | :------ |
| **liam-docs** | ⬜️ Ignored ([Inspect](https://vercel.com/route-06-core/liam-docs/DzdWpxFL11vomcXZ8krWTsMj4xda)) | [Visit Preview](https://liam-docs-git-triggerdevstagingdeploy-route-06-core.vercel.app) |  | Mar 18, 2025 10:38am |
| **test-liam-app** | ⬜️ Ignored ([Inspect](https://vercel.com/route-06-core/test-liam-app/Cvkh5FTGqhiwVwSdPuAw5F48P5w7)) |  |  | Mar 18, 2025 10:38am |
| **test-liam-docs** | ⬜️ Ignored ([Inspect](https://vercel.com/route-06-core/test-liam-docs/5i5uTYkmYoZsap99eh7Vvm8hKZAZ)) |  |  | Mar 18, 2025 10:38am |
| **test-liam-erd-sample** | ⬜️ Ignored ([Inspect](https://vercel.com/route-06-core/test-liam-erd-sample/H8BK9KxG8G56X31soqdUXoR8LZ1E)) |  |  | Mar 18, 2025 10:38am |
</details>







author_association: NONE
user: login: supabase[bot]
created_at: 2025-03-18T09:22:19Z
body: [supa]:ctxgccafzjkrgutbthil
**Updates to [Preview Branch (trigger_dev_staging_deploy) ↗︎](https://supabase.com/dashboard/project/ctxgccafzjkrgutbthil)**

| Deployments | Status                      | Updated                   |
| ----------- | --------------------------- | ------------------------- |
| Database    | ✅ | Tue, 18 Mar 2025 10:32:05 UTC |
| Services    | ✅  | Tue, 18 Mar 2025 10:32:05 UTC  |
| APIs        | ✅      | Tue, 18 Mar 2025 10:32:05 UTC      |

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

| Tasks          | Status                       | Updated                    |
| -------------- | ---------------------------- | -------------------------- |
| Configurations | ✅ | Tue, 18 Mar 2025 10:32:05 UTC |
| Migrations     | ✅ | Tue, 18 Mar 2025 10:32:06 UTC |
| Seeding        | ✅   | Tue, 18 Mar 2025 10:32:06 UTC   |
| Edge Functions | ✅  | Tue, 18 Mar 2025 10:32:06 UTC  |

<hr/>




View logs for this [Workflow Run ↗︎](https://supabase.com/dashboard/project/ctxgccafzjkrgutbthil/branches).
Learn more about [Supabase for Git ↗︎](https://supabase.com/docs/guides/platform/branching).

author_association: NONE
user: login: qodo-free-for-open-source-projects[bot]
created_at: 2025-03-18T10:38:03Z
body: Failed to generate code suggestions for PR
author_association: CONTRIBUTOR