From 23207e0d5349590658cf0a472b477a3d6f03ccc4 Mon Sep 17 00:00:00 2001 From: ludeeus Date: Sun, 21 Apr 2019 19:45:42 +0200 Subject: [PATCH] revert --- .github/main.workflow | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/main.workflow b/.github/main.workflow index 7fbb3c4..2e7cc29 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -1,8 +1,32 @@ +workflow "Trigger: Push to master from admin account" { + on = "push" + resolves = ["HA Index"] +} + workflow "Trigger: Push" { on = "push" resolves = ["Black Code Formatter"] } +action "branch-filter" { + uses = "actions/bin/filter@master" + args = "branch master" +} + +action "Access control" { + uses = "ludeeus/action-accesscontrol@master" + env = { + ACTION_LEVEL = "admin" + } + secrets = ["GITHUB_TOKEN"] +} + +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"