Generate latest tag by default on push tag event (#5)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMaxandCrazyMax authored and GitHub committed 2020-10-28 17:25:31 +00:00
1 parent 5ecce77816
commit 6cc07472c0
4 files changed
+25 -13

No files matched your search

+2
View File
@@ -52,6 +52,8 @@ export class Meta {
version.version = tagMatch[this.inputs.tagMatchGroup];
version.latest = this.inputs.tagMatchLatest;
}
} else {
version.latest = true;
}
} else if (/^refs\/heads\//.test(this.context.ref)) {
version.version = this.context.ref.replace(/^refs\/heads\//g, '').replace(/\//g, '-');