From ad2e54a71042b487643b02d4dbda0142c486ac77 Mon Sep 17 00:00:00 2001 From: ludeeus Date: Fri, 8 Mar 2019 19:24:11 +0100 Subject: [PATCH] fix action --- .github/main.workflow | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index 54aef73..1fdc782 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -1,14 +1,15 @@ workflow "Trigger: Push to master from admin account" { on = "push" resolves = [ - "HA Index" + "HA Index", + "push" ] } workflow "Trigger: Push" { on = "push" resolves = [ - "Black Code Formatter" + "Black Code Formatter Check" ] } @@ -32,7 +33,24 @@ action "HA Index" { needs = ["branch-filter", "Access control"] } -action "Black Code Formatter" { +action "Black Code Formatter Fix" { + uses = "lgeiger/black-action@v1.0.1" + args = "$GITHUB_WORKSPACE" +} + +action "Black Code Formatter Check" { uses = "lgeiger/black-action@v1.0.1" args = "$GITHUB_WORKSPACE --check" +} + +action "push" { + uses = "ludeeus/actions/push@master" + env = { + PUSHMAIL = "ludeeus@gmail.com" + PUSHNAME = "ludeeus" + PUSHBRANCH = "master" + PUSHMESSAGE = "Action commit" + } + needs = ["Black Code Formatter Fix"] + secrets = ["GITHUB_TOKEN"] } \ No newline at end of file