Skip to content

Commit

Permalink
fix: download both .yml and .yaml from repos (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw authored Dec 9, 2024
1 parent e7e8b26 commit 70f9368
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/github_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,10 @@ impl Client {
.json()?;

let mut workflows = vec![];
for file in resp.into_iter().filter(|file| file.name.ends_with(".yml")) {
for file in resp
.into_iter()
.filter(|file| file.name.ends_with(".yml") || file.name.ends_with(".yaml"))
{
let file_url = format!("{url}/{file}", file = file.name);
tracing::debug!("fetching {file_url}");

Expand Down

0 comments on commit 70f9368

Please sign in to comment.