Only return edge if branch matches

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2021-07-12 17:08:07 +02:00
parent f6efe56d56
commit 4cb9252fa6
4 changed files with 55 additions and 33 deletions

View File

@ -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');
}