From 12329c91dd2652cc89137ea0ffae90d1292fae40 Mon Sep 17 00:00:00 2001 From: Andrew Marcuse Date: Sat, 4 May 2024 10:39:26 -0400 Subject: [PATCH] FIX: ignore excludes if includes are specified --- TODO.md | 2 ++ workflows.go | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index 9beb81d..1a2cf8b 100644 --- a/TODO.md +++ b/TODO.md @@ -4,6 +4,8 @@ - [ ] better README - [ ] action.yaml - [ ] output file extension based on format +- [ ] custom external links (and link definitions from a yaml file) +- [ ] json output (separate flag/file) - [ ] progress indicators (if output!=stdout && stdout == tty) - [ ] args: title, header, footer - [ ] new arg: template, (and @filename) diff --git a/workflows.go b/workflows.go index bb0c383..192492f 100644 --- a/workflows.go +++ b/workflows.go @@ -30,8 +30,7 @@ func GetWorkflowsForRepo(client *github.Client, repo *github.Repository) ([]*git if !ok { continue } - } - if len(ExcludeSet) > 0 { + } else if len(ExcludeSet) > 0 { _, ok := ExcludeSet[strings.ToLower(*workflow.Name)] if ok { continue