mirror of
https://code.forgejo.org/docker/metadata-action.git
synced 2025-08-30 01:40:55 +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:
parent
5ecce77816
commit
6cc07472c0
4 changed files with 25 additions and 13 deletions
|
@ -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, '-');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue