diff --git a/.github/main.workflow b/.github/main.workflow index ff00daa3..063de6ac 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -8,7 +8,10 @@ workflow "Lint & Publish Helm chart" { workflow "Pull Requests" { on = "pull_request" - resolves = ["Lint changed chart(s) in pull request"] + resolves = [ + "Lint changed chart(s) in pull request", + "Branch Cleanup", + ] } action "Package Helm Chart(s)" { @@ -22,6 +25,7 @@ action "Lint changed chart(s) in pull request" { uses = "billimek/gh-actions/helm-gh-pages@master" args = "https://billimek.com/billimek-charts/" secrets = ["GITHUB_TOKEN"] + needs = ["Not on master branch ?"] } action "Push on the master branch?" { @@ -30,15 +34,20 @@ action "Push on the master branch?" { secrets = ["GITHUB_TOKEN"] } -action "Filter for not master" { - uses = "actions/bin/filter@master" - args = "not branch master" - secrets = ["GITHUB_TOKEN"] -} - action "Not a deleted event" { uses = "actions/bin/filter@3c0b4f0e63ea54ea5df2914b4fabf383368cd0da" args = "not deleted" secrets = ["GITHUB_TOKEN"] needs = ["Push on the master branch?"] } + +action "Branch Cleanup" { + uses = "jessfraz/branch-cleanup-action@master" + secrets = ["GITHUB_TOKEN"] +} + +action "Not on master branch ?" { + uses = "actions/bin/filter@3c0b4f0e63ea54ea5df2914b4fabf383368cd0da" + args = "not branch master" + secrets = ["GITHUB_TOKEN"] +}