[ci] Skip preview tarball upload when the artifact is missing (#98713)
The build-and-deploy workflow can conclude successfully without producing a `preview-tarballs` artifact, for example when its `deploy-tarball` job is skipped on docs-only canary pushes or on production tag pushes (https://github.com/vercel/next.js/actions/runs/35075211933). The `upload-preview-tarballs` workflow then failed when downloading the artifact. This change lets the download step fail without failing the job and skips the upload step in that case, so a missing artifact no longer turns the workflow red. The failed-but-tolerated download step still leaves an error annotation on the green run. Real breakage still surfaces in build-and-test, which waits on the published tarballs.
Showing
Please
register
or
sign in
to comment