Separate workflows as otherwise they interfere with eachother

This commit is contained in:
Daniel Tschinder 2019-07-20 15:26:52 +02:00 committed by GitHub
parent 94b678c949
commit 3b4a86aea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
.github/main.workflow vendored
View File

@ -23,10 +23,9 @@ action "Trigger GitHub release" {
] ]
} }
workflow "Issues" { workflow "Welcome" {
resolves = [ resolves = [
"Create Welcome Comment", "Create Welcome Comment"
"Create Needs Info Comment"
] ]
on = "issues" on = "issues"
} }
@ -42,6 +41,13 @@ action "Create Welcome Comment" {
needs = ["Is action 'opened'"] needs = ["Is action 'opened'"]
} }
workflow "Needs Info" {
resolves = [
"Create Needs Info Comment"
]
on = "issues"
}
action "Is action 'labeled'" { action "Is action 'labeled'" {
uses = "actions/bin/filter@master" uses = "actions/bin/filter@master"
args = "action labeled" args = "action labeled"
@ -49,13 +55,15 @@ action "Is action 'labeled'" {
action "Has label 'Needs Info'" { action "Has label 'Needs Info'" {
uses = "actions/bin/filter@master" uses = "actions/bin/filter@master"
needs = [
"Is action 'labeled'"
]
args = "label 'Needs Info'" args = "label 'Needs Info'"
} }
action "Create Needs Info Comment" { action "Create Needs Info Comment" {
uses = "babel/actions/create-needs-info-comment@master" uses = "babel/actions/create-needs-info-comment@master"
needs = [ needs = [
"Is action 'labeled'",
"Has label 'Needs Info'", "Has label 'Needs Info'",
] ]
secrets = ["BOT_TOKEN", "GITHUB_TOKEN"] secrets = ["BOT_TOKEN", "GITHUB_TOKEN"]