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 here
instead of
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
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
refherewait-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