2019-02-07 11:09:19 -06:00
|
|
|
workflow "test" {
|
|
|
|
on = "push"
|
2019-05-22 23:39:57 -05:00
|
|
|
resolves = [
|
|
|
|
"test-action-repo",
|
|
|
|
"test-action-ref",
|
|
|
|
]
|
2019-02-07 11:09:19 -06:00
|
|
|
}
|
|
|
|
|
2019-05-22 23:39:57 -05:00
|
|
|
action "test-action-repo" {
|
2019-02-07 11:09:19 -06:00
|
|
|
uses = "docker://alpine:3.9"
|
|
|
|
runs = ["sh", "-c", "echo $GITHUB_REPOSITORY | grep '^nektos/act$'"]
|
2019-05-22 23:39:57 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
action "test-action-ref" {
|
|
|
|
uses = "docker://alpine:3.9"
|
|
|
|
runs = ["sh", "-c", "echo $GITHUB_REF | grep '^refs/'"]
|
|
|
|
}
|