From 239ab126fbe31f0ccf47ab3b9126e63ec8aff3b8 Mon Sep 17 00:00:00 2001 From: ludeeus Date: Sat, 9 Mar 2019 12:58:00 +0100 Subject: [PATCH] Update actions --- .github/main.workflow | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index cc81972..2e7cc29 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -1,8 +1,11 @@ workflow "Trigger: Push to master from admin account" { on = "push" - resolves = [ - "HA Index" - ] + resolves = ["HA Index"] +} + +workflow "Trigger: Push" { + on = "push" + resolves = ["Black Code Formatter"] } action "branch-filter" { @@ -22,4 +25,9 @@ action "HA Index" { uses = "ludeeus/action-haindex@master" secrets = ["GITHUB_TOKEN"] needs = ["branch-filter", "Access control"] +} + +action "Black Code Formatter" { + uses = "lgeiger/black-action@master" + args = "$GITHUB_WORKSPACE --check --diff" } \ No newline at end of file