Generate latest tag by default on push tag event

This commit is contained in:
CrazyMax 2020-10-28 18:19:04 +01:00
parent 5ecce77816
commit b246670a3c
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
4 changed files with 20 additions and 11 deletions

3
dist/index.js generated vendored
View file

@ -208,6 +208,9 @@ class Meta {
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, '-');