Skip to content

Commit

Permalink
Remove setting exit codes and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed May 18, 2024
1 parent 67ad413 commit bab2218
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://doc.rust-lang.org/cargo/getting-started/first-steps.html#first-steps-with-cargo
[package]
name = "none-shall-pass"
version = "0.1.8-a"
version = "0.1.9"
description = "Artifact for GitHub Action to validate hyperlinks in all markdown files"
license = "MIT"
rust-version = "1.78.0"
Expand Down
4 changes: 0 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ fn runner(
hyperlink: response.hyperlink
};
locked_responses.push(json_response);
if env::var("nsp_exit_code").unwrap_or("0".to_string()) != "1" {
env::set_var("nsp_exit_code", "1");
}
}
});
threads.push((hyperlink_clone, handle));
Expand Down Expand Up @@ -190,7 +187,6 @@ fn main() {
let command = format!("git clone https://github.com/{}/{}.git", config.owner, wiki);
if git::run(command.as_str()) && !wiki_path.exists() {
log::error!("Cloning was successful but wiki path wasn't found");
env::set_var("nsp_exit_code", "1");
}
let client = request_builder();
let errors = Arc::new(Mutex::new(Vec::new()));
Expand Down

0 comments on commit bab2218

Please sign in to comment.