test workflow
This commit is contained in:
parent
a648b05cf8
commit
3a150afa71
2
main.go
2
main.go
@ -21,7 +21,7 @@ func main() {
|
|||||||
tag := gha.GetInput("tag")
|
tag := gha.GetInput("tag")
|
||||||
if tag == "" {
|
if tag == "" {
|
||||||
tag = ctx.Ref
|
tag = ctx.Ref
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.HasPrefix(tag, "refs/tags/") {
|
if !strings.HasPrefix(tag, "refs/tags/") {
|
||||||
gha.Fatalf("ref %s is not a tag", tag)
|
gha.Fatalf("ref %s is not a tag", tag)
|
||||||
|
Loading…
Reference in New Issue
Block a user