Skip to content

Commit

Permalink
Skip if artifacts not found, Bump ver -> 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
harshdoesdev committed Oct 6, 2023
1 parent 8c13370 commit f42f41e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "vercel-cache-helper"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
description = "Hello world"

Expand Down
5 changes: 4 additions & 1 deletion src/commands/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ pub async fn download(
)?;
let output_artifact_exists = output_exists_req.send().await?;

assert!(output_artifact_exists, "Build artifacts not found");
if !output_artifact_exists {
println!("Build artifacts not found.");
return Ok(());
}

println!("Build artifacts found. Downloading build artifacts...");

Expand Down

0 comments on commit f42f41e

Please sign in to comment.