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

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

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, '-');