Skip to content

Commit

Permalink
Print more output
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Jul 4, 2021
1 parent 7a623fa commit 01fe49f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions bin/prerelease/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ fn main() {
let regex = Regex::new("^refs/tags/[[:digit:]]+[.][[:digit:]]+[.][[:digit:]]+$")
.expect("Failed to compile release regex");

let output = format!(
"::set-output name=value::{}",
!regex.is_match(&arguments.reference)
);
let value = !regex.is_match(&arguments.reference);

eprintln!("`{}`", output);
println!("{}", output);
eprintln!("ref: {}", arguments.reference);
eprintln!("value: {}", value);

println!("::set-output name=value::{}", value);
}

0 comments on commit 01fe49f

Please sign in to comment.