add master branch filter and auto delete branch

This commit is contained in:
Jeff Billimek 2019-05-26 22:47:14 -04:00 committed by GitHub
parent d4ef757ae1
commit 73602d60f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

23
.github/main.workflow vendored
View File

@ -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"]
}