-
Notifications
You must be signed in to change notification settings - Fork 54
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
When a build is ignored, the action fails to retrieve the existing deployment #45
Comments
#### Summary A workaround to patrickedqvist/wait-for-vercel-preview#45. This should fix the broken links CI workflow when a build is ignored on Vercel. I'm using negated logic `!= false` as we also run this check on a schedule and manually. Otherwise we need to set multiple outputs (`skip-for-pr`, `skip-for-schedule`) <!--
Hi @erezrokah! Did you try adding |
Hi @oxfist thanks for the reply! We are using |
Our current workaround is to re-implement the Vercel ignore logic in our GitHub action workflow and only use |
Hey @erezrokah Could you share in more details how you solved it? If it's possible to share a code snippet, that would be great. |
When one configures an ignore command on Vercel, and pushes a new commit, the action fails to retrieve any existing deployments (shown as outdated on GitHub) if the build is skipped:


I tried passing
ref
herewait-for-vercel-preview/action.js
Line 217 in 1d4a973
sha
(e.g. passing the branch name), but it doesn't seem to work (maybe because Vercel only sets the deployment on commits).Another solution would be to retrieve previous commits and look for deployments from them, but there could be a race condition here where a new one hasn't appeared yet and we get the stale one.
Not sure what's the proper solution for it
The text was updated successfully, but these errors were encountered: