fix #24 - support both branch refs and hash refs
This commit is contained in:
2
actions/testdata/basic.workflow
vendored
2
actions/testdata/basic.workflow
vendored
@@ -10,7 +10,7 @@ action "build" {
|
||||
|
||||
action "test" {
|
||||
uses = "docker://ubuntu:18.04"
|
||||
args = "echo 'test'"
|
||||
args = "env"
|
||||
needs = ["build"]
|
||||
}
|
||||
|
||||
|
14
actions/testdata/gitref.workflow
vendored
Normal file
14
actions/testdata/gitref.workflow
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
workflow "New workflow" {
|
||||
on = "push"
|
||||
resolves = ["branch-ref","commit-ref"]
|
||||
}
|
||||
|
||||
action "branch-ref" {
|
||||
uses = "actions/docker/cli@master"
|
||||
args = "version"
|
||||
}
|
||||
|
||||
action "commit-ref" {
|
||||
uses = "actions/docker/cli@c08a5fc9e0286844156fefff2c141072048141f6"
|
||||
args = "version"
|
||||
}
|
Reference in New Issue
Block a user