-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple preview deployments per Pull request #47
Comments
Any plans to fix this @patrickedqvist we'd be happy to sponsor you if this is fixed :) |
@MarkLyck we're able to wait on a specific environment by doing this:
We have 2 deployments that happens each time, but currently only interested in running on a specific one. I'm not sure about running on all of them though, maybe that would require separate actions? Edit to add: here's the line where it passes the environment to octokit: wait-for-vercel-preview/action.js Line 218 in c934e81
|
I would love to implement this, I'm going to work on a project soon where I might be able to develop this feature properly at the same time. I happily accept contributions as well ;) |
How do you see this being done? I see 2 things that could be nice
What do you think? |
@pip8786 How did you find the name of the environment? I am creating a preview deployment with A workaround solution I use now, is to change the in my case:
|
Hey @filipkowal, the name of the environment is whatever this says for you. Can be Production, Preview, Preview - YourApp, Production - YourApp etc. |
@filipkowal Just confirming that what @hjoelh posted is correct. That part of the comment from Vercel is what we used to filter the Github action by environment. |
Apparently, it looks like you cannot pass "part" of the deployment name. In my case, Preview has the environment: ${{ github.ref == 'refs/heads/master' && 'Production – foo' || 'Preview – foo' }} |
This action works great for projects with a single Vercel deployment.
But in my case my project has 3 vercel deployments per project, and currently this action only returns the URL for the first one that runs which is random.
I would like to either have it run on all preview deployments when they are succesful or a specific one. But this doesn't seem to be supported.
The text was updated successfully, but these errors were encountered: