mirror of
https://github.com/docker/metadata-action.git
synced 2025-06-23 19:27:58 +02:00
Only return edge if branch matches
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
6
dist/index.js
generated
vendored
6
dist/index.js
generated
vendored
@ -629,10 +629,10 @@ 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');
|
||||
}
|
||||
procRaw(version, tag) {
|
||||
|
Reference in New Issue
Block a user