2
0
Fork 0
mirror of https://code.forgejo.org/docker/metadata-action.git synced 2025-09-17 10:16:57 +00:00

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:
CrazyMax 2020-10-28 18:25:31 +01:00 committed by GitHub
parent 5ecce77816
commit 6cc07472c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 13 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, '-');