Handle tag-match-latest on Git tag event

This commit is contained in:
CrazyMax 2020-10-31 19:17:02 +01:00
parent b4c9b2116e
commit 8632141d51
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
4 changed files with 4 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, '-');