Next.js Discord

Discord Forum

How do I run GitHub Actions AFTER Vercel deployments are complete?

Unanswered
troop4christ posted this in #help-forum
Open in Discord
I have a Github project, that has two Vercel projects linked to it. One to build and deploy a style-guide and another to do so for the app itself.

How do I A) configure a GitHub workflow .yml to wait for the vercel deployments to complete successfully before running.. and B) associate that GitHub action with the Vercel deployment that succeeded for the app, not the styleguide.

The problem is, github.event.deployment_status.environment_url contains the styleguide url, not the app url.

so of course, the playwright tests fail because they're trying to run on the wrong url.

Discord wouldn't let me copy/paste my .yml, so I'll try to post in a subsequent reply

1 Reply

Only lets me attach as a file.. sigh...