I have more than one "project" set up for a monorepo, and now I'm struggling how to distinguish between those in a post-deployment GH action.
So far I followed https://vercel.com/guides/how-can-i-run-end-to-end-tests-after-my-vercel-preview-deployment, but that just runs for every deployment of every project, while I want it to focus in on just one.
How to distinguish between deployments here?
#Github Actions: Distinguish multiple deployments from one repo
7 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
Probably best to ask over at the Vercel community at https://vercel.community/
I had hoped to avoid signing up for another community, but it seems unavoidable - thanks 🙂
It's connected to your Vercel account if I recall correctly. In any case, community engineers over there are likely to be more helpful in terms of Vercel as a platform. Best of luck.
Thanks! 🙂
Figured it out:
-if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
+if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' && github.event.deployment_status.environment == 'Preview – apollo__experimental-nextjs-app-support'