mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 15:39:02 +00:00
add filter to exclude merged PRs
... due to double-push events that occur when a PR is merged
This commit is contained in:
parent
9f95ce7d52
commit
98f572ef60
12
.github/main.workflow
vendored
12
.github/main.workflow
vendored
@ -1,6 +1,7 @@
|
||||
workflow "Lint & Publish Helm chart" {
|
||||
resolves = [
|
||||
"Package Helm Chart(s)",
|
||||
"Filter for non-merged PRs",
|
||||
]
|
||||
on = "push"
|
||||
}
|
||||
@ -9,7 +10,7 @@ action "Package Helm Chart(s)" {
|
||||
uses = "billimek/gh-actions/helm-gh-pages@master"
|
||||
args = "https://billimek.com/billimek-charts/"
|
||||
secrets = ["GITHUB_TOKEN"]
|
||||
needs = ["Filter for master "]
|
||||
needs = ["Filter for non-merged PRs"]
|
||||
}
|
||||
|
||||
workflow "Pull Request" {
|
||||
@ -25,8 +26,15 @@ action "Pull Request Linting" {
|
||||
secrets = ["GITHUB_TOKEN"]
|
||||
}
|
||||
|
||||
action "Filter for master " {
|
||||
action "Filter for master" {
|
||||
uses = "actions/bin/filter@master"
|
||||
args = "branch master"
|
||||
secrets = ["GITHUB_TOKEN"]
|
||||
}
|
||||
|
||||
action "Filter for non-merged PRs" {
|
||||
uses = "actions/bin/filter@master"
|
||||
needs = ["Filter for master"]
|
||||
args = "not merged true"
|
||||
secrets = ["GITHUB_TOKEN"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user