From f42f41e9f3b25031d5b4b3845df0730e3fe65996 Mon Sep 17 00:00:00 2001 From: Harsh Singh Date: Fri, 6 Oct 2023 14:19:24 +0530 Subject: [PATCH] Skip if artifacts not found, Bump ver -> 0.2.1 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/commands/download.rs | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4349059..61b22f7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1299,7 +1299,7 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" [[package]] name = "vercel-cache-helper" -version = "0.2.0" +version = "0.2.1" dependencies = [ "atty", "clap", diff --git a/Cargo.toml b/Cargo.toml index 41abaeb..610f992 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vercel-cache-helper" -version = "0.2.0" +version = "0.2.1" edition = "2021" description = "Hello world" diff --git a/src/commands/download.rs b/src/commands/download.rs index 17cb6bb..5e54275 100644 --- a/src/commands/download.rs +++ b/src/commands/download.rs @@ -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...");