Skip to content

Commit 7a262ad

Browse files
committed
rust: ignore unreleased workflows
1 parent 076d76d commit 7a262ad

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/github.rs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,19 @@ pub async fn command_fetch_release_distributions(args: &ArgMatches) -> Result<()
9797
.send()
9898
.await?
9999
.into_iter()
100-
.map(|wf| {
101-
workflow_names.insert(wf.id.clone(), wf.name);
102-
103-
wf.id
100+
.filter_map(|wf| {
101+
if matches!(
102+
wf.name.as_str(),
103+
".github/workflows/apple.yml"
104+
| ".github/workflows/linux.yml"
105+
| ".github/workflows/windows.yml"
106+
) {
107+
workflow_names.insert(wf.id.clone(), wf.name);
108+
109+
Some(wf.id)
110+
} else {
111+
None
112+
}
104113
})
105114
.collect::<Vec<_>>();
106115

0 commit comments

Comments
 (0)