revert
This commit is contained in:
24
.github/main.workflow
vendored
24
.github/main.workflow
vendored
@ -1,8 +1,32 @@
|
|||||||
|
workflow "Trigger: Push to master from admin account" {
|
||||||
|
on = "push"
|
||||||
|
resolves = ["HA Index"]
|
||||||
|
}
|
||||||
|
|
||||||
workflow "Trigger: Push" {
|
workflow "Trigger: Push" {
|
||||||
on = "push"
|
on = "push"
|
||||||
resolves = ["Black Code Formatter"]
|
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" {
|
action "Black Code Formatter" {
|
||||||
uses = "lgeiger/black-action@master"
|
uses = "lgeiger/black-action@master"
|
||||||
args = "$GITHUB_WORKSPACE --check --diff"
|
args = "$GITHUB_WORKSPACE --check --diff"
|
||||||
|
Reference in New Issue
Block a user