charts/.github/main.workflow
2019-05-27 20:40:05 -04:00

71 lines
1.5 KiB
HCL

workflow "Lint & Publish Helm chart" {
resolves = [
"Package Helm Chart(s)",
"Filter: not deleted",
]
on = "push"
}
workflow "Pull Requests" {
resolves = [
"Lint changed chart(s) in pull request",
]
on = "pull_request"
}
action "Package Helm Chart(s)" {
uses = "billimek/gh-actions/helm-gh-pages@master"
args = "https://billimek.com/billimek-charts/"
secrets = [
"GITHUB_TOKEN",
"COMMIT_EMAIL",
"ACCESS_TOKEN",
]
needs = ["Filter: not deleted"]
}
action "Filter: master branch" {
uses = "actions/bin/filter@master"
args = "branch master"
secrets = ["GITHUB_TOKEN"]
}
action "Filter: not deleted" {
uses = "actions/bin/filter@master"
args = "not deleted"
secrets = ["GITHUB_TOKEN"]
needs = ["Filter: master branch"]
}
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"]
}
action "Filter: not master branch" {
uses = "actions/bin/filter@master"
args = "not master branch"
secrets = ["GITHUB_TOKEN"]
}
action "Filter: action 'opened|synchronize'" {
uses = "actions/bin/filter@master"
args = "action 'opened|synchronize'"
secrets = ["GITHUB_TOKEN"]
}
action "Lint changed chart(s) in pull request" {
uses = "billimek/gh-actions/helm-gh-pages@master"
needs = [
"Filter: not master branch",
"Filter: action 'opened|synchronize'",
]
args = "https://billimek.com/billimek-charts/"
secrets = ["GITHUB_TOKEN"]
}