mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-03 07:49:03 +00:00
split-out branch cleanup into separate workflow
This commit is contained in:
parent
8abc8acae6
commit
fb9fb64a6b
19
.github/main.workflow
vendored
19
.github/main.workflow
vendored
@ -10,7 +10,6 @@ workflow "Pull Requests" {
|
|||||||
on = "pull_request"
|
on = "pull_request"
|
||||||
resolves = [
|
resolves = [
|
||||||
"Lint changed chart(s) in pull request",
|
"Lint changed chart(s) in pull request",
|
||||||
"Branch Cleanup",
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,16 +40,18 @@ action "Not a deleted event" {
|
|||||||
needs = ["Push on the master branch?"]
|
needs = ["Push on the master branch?"]
|
||||||
}
|
}
|
||||||
|
|
||||||
action "Branch Cleanup" {
|
|
||||||
uses = "jessfraz/branch-cleanup-action@master"
|
|
||||||
secrets = ["GITHUB_TOKEN"]
|
|
||||||
env = {
|
|
||||||
NO_BRANCH_DELETED_EXIT_CODE = "0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
action "Not on master branch ?" {
|
action "Not on master branch ?" {
|
||||||
uses = "actions/bin/filter@3c0b4f0e63ea54ea5df2914b4fabf383368cd0da"
|
uses = "actions/bin/filter@3c0b4f0e63ea54ea5df2914b4fabf383368cd0da"
|
||||||
args = "not branch master"
|
args = "not branch master"
|
||||||
secrets = ["GITHUB_TOKEN"]
|
secrets = ["GITHUB_TOKEN"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
workflow "on pull request merge, delete the branch" {
|
||||||
|
on = "pull_request"
|
||||||
|
resolves = ["branch cleanup"]
|
||||||
|
}
|
||||||
|
|
||||||
|
action "branch cleanup" {
|
||||||
|
uses = "jessfraz/branch-cleanup-action@master"
|
||||||
|
secrets = ["GITHUB_TOKEN"]
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user