mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
ci(postman): hotfix for stripe and nmi collections failing (#3956)
This commit is contained in:
@ -18,17 +18,21 @@ fn main() {
|
||||
|
||||
// Filter out None values leaving behind Some(Path)
|
||||
let paths: Vec<String> = runner.modified_file_paths.into_iter().flatten().collect();
|
||||
let git_status = Command::new("git").arg("restore").args(&paths).output();
|
||||
|
||||
match git_status {
|
||||
Ok(output) => {
|
||||
if !output.status.success() {
|
||||
if !paths.is_empty() {
|
||||
let git_status = Command::new("git").arg("restore").args(&paths).output();
|
||||
|
||||
match git_status {
|
||||
Ok(output) if !output.status.success() => {
|
||||
let stderr_str = String::from_utf8_lossy(&output.stderr);
|
||||
eprintln!("Git command failed with error: {stderr_str}");
|
||||
}
|
||||
}
|
||||
Err(e) => {
|
||||
eprintln!("Error running Git: {e}");
|
||||
Ok(_) => {
|
||||
println!("Git restore successful!");
|
||||
}
|
||||
Err(e) => {
|
||||
eprintln!("Error running Git: {e}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user