Handle tag-match-latest on Git tag event (#8)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMaxandCrazyMax authored and GitHub committed 2020-10-31 18:52:55 +00:00
1 parent b4c9b2116e
commit 52c4b1ad0c
5 files changed
+29 -4

No files matched your search

+1 -1
View File
@@ -53,7 +53,7 @@ export class Meta {
version.latest = this.inputs.tagMatchLatest;
}
} else {
version.latest = true;
version.latest = this.inputs.tagMatchLatest;
}
} else if (/^refs\/heads\//.test(this.context.ref)) {
version.version = this.context.ref.replace(/^refs\/heads\//g, '').replace(/\//g, '-');