Skip to content

Commit

Permalink
fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Mar 8, 2019
1 parent f686660 commit ad2e54a
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -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"
]
}

Expand All @@ -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"]
}

0 comments on commit ad2e54a

Please sign in to comment.