Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions crates/gh-workflow/src/generate.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! This module provides functionality to customize generation of the GitHub
//! Actions workflow files.

use std::io::ErrorKind;
use std::path::PathBuf;
use std::process::Command;

Expand Down Expand Up @@ -70,7 +69,7 @@ impl Generate {
}
Err(Error::MissingWorkflowFile(path)) => {
std::fs::create_dir_all(path.parent().ok_or(Error::IO(
std::io::Error::new(ErrorKind::Other, "Invalid parent dir(s) path"),
std::io::Error::other("Invalid parent dir(s) path"),
))?)?;
std::fs::write(path.clone(), content)?;
println!("Generated workflow file: {}", path.display());
Expand Down