From 3b4a86aea4a88a5555757b406aa72dd94a2f3ecb Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Sat, 20 Jul 2019 15:26:52 +0200 Subject: [PATCH] Separate workflows as otherwise they interfere with eachother --- .github/main.workflow | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index 6a5626e60d..3c6315efff 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -23,10 +23,9 @@ action "Trigger GitHub release" { ] } -workflow "Issues" { +workflow "Welcome" { resolves = [ - "Create Welcome Comment", - "Create Needs Info Comment" + "Create Welcome Comment" ] on = "issues" } @@ -42,6 +41,13 @@ action "Create Welcome Comment" { needs = ["Is action 'opened'"] } +workflow "Needs Info" { + resolves = [ + "Create Needs Info Comment" + ] + on = "issues" +} + action "Is action 'labeled'" { uses = "actions/bin/filter@master" args = "action labeled" @@ -49,13 +55,15 @@ action "Is action 'labeled'" { action "Has label 'Needs Info'" { uses = "actions/bin/filter@master" + needs = [ + "Is action 'labeled'" + ] args = "label 'Needs Info'" } action "Create Needs Info Comment" { uses = "babel/actions/create-needs-info-comment@master" needs = [ - "Is action 'labeled'", "Has label 'Needs Info'", ] secrets = ["BOT_TOKEN", "GITHUB_TOKEN"]