mirror of
https://github.com/docker/metadata-action.git
synced 2025-06-24 03:37:59 +02:00
Only return edge if branch matches
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@ -265,11 +265,11 @@ export class Meta {
|
||||
if (tag.attrs['branch'].length == 0) {
|
||||
tag.attrs['branch'] = this.repo.default_branch;
|
||||
}
|
||||
if (tag.attrs['branch'] === val) {
|
||||
val = 'edge';
|
||||
if (tag.attrs['branch'] != val) {
|
||||
return version;
|
||||
}
|
||||
|
||||
const vraw = this.setValue(val, tag);
|
||||
const vraw = this.setValue('edge', tag);
|
||||
return Meta.setVersion(version, vraw, this.flavor.latest == 'auto' ? false : this.flavor.latest == 'true');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user