mirror of
https://code.forgejo.org/docker/metadata-action.git
synced 2025-08-02 15:58:31 +00:00
Handle tag-match-latest on Git tag event (#8)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
b4c9b2116e
commit
52c4b1ad0c
5 changed files with 29 additions and 4 deletions
|
@ -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, '-');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue