mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
add master branch filter and auto delete branch
This commit is contained in:
parent
d4ef757ae1
commit
73602d60f0
23
.github/main.workflow
vendored
23
.github/main.workflow
vendored
@ -8,7 +8,10 @@ workflow "Lint & Publish Helm chart" {
|
|||||||
|
|
||||||
workflow "Pull Requests" {
|
workflow "Pull Requests" {
|
||||||
on = "pull_request"
|
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)" {
|
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"
|
uses = "billimek/gh-actions/helm-gh-pages@master"
|
||||||
args = "https://billimek.com/billimek-charts/"
|
args = "https://billimek.com/billimek-charts/"
|
||||||
secrets = ["GITHUB_TOKEN"]
|
secrets = ["GITHUB_TOKEN"]
|
||||||
|
needs = ["Not on master branch ?"]
|
||||||
}
|
}
|
||||||
|
|
||||||
action "Push on the master branch?" {
|
action "Push on the master branch?" {
|
||||||
@ -30,15 +34,20 @@ action "Push on the master branch?" {
|
|||||||
secrets = ["GITHUB_TOKEN"]
|
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" {
|
action "Not a deleted event" {
|
||||||
uses = "actions/bin/filter@3c0b4f0e63ea54ea5df2914b4fabf383368cd0da"
|
uses = "actions/bin/filter@3c0b4f0e63ea54ea5df2914b4fabf383368cd0da"
|
||||||
args = "not deleted"
|
args = "not deleted"
|
||||||
secrets = ["GITHUB_TOKEN"]
|
secrets = ["GITHUB_TOKEN"]
|
||||||
needs = ["Push on the master branch?"]
|
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"]
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user