diff --git a/.github/main.workflow b/.github/main.workflow index 16b173ab..9fe721a3 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -1,6 +1,7 @@ workflow "Lint & Publish Helm chart" { resolves = [ "Package Helm Chart(s)", + "Filter for non-merged PRs", ] on = "push" } @@ -9,7 +10,7 @@ action "Package Helm Chart(s)" { uses = "billimek/gh-actions/helm-gh-pages@master" args = "https://billimek.com/billimek-charts/" secrets = ["GITHUB_TOKEN"] - needs = ["Filter for master "] + needs = ["Filter for non-merged PRs"] } workflow "Pull Request" { @@ -25,8 +26,15 @@ action "Pull Request Linting" { secrets = ["GITHUB_TOKEN"] } -action "Filter for master " { +action "Filter for master" { uses = "actions/bin/filter@master" args = "branch master" secrets = ["GITHUB_TOKEN"] } + +action "Filter for non-merged PRs" { + uses = "actions/bin/filter@master" + needs = ["Filter for master"] + args = "not merged true" + secrets = ["GITHUB_TOKEN"] +}