mirror of
https://code.forgejo.org/docker/metadata-action.git
synced 2025-09-16 09:46:56 +00:00
is_default_branch global expression
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
535130561a
commit
e1a45f6e54
7 changed files with 179 additions and 40 deletions
|
@ -206,9 +206,6 @@ export function Parse(s: string): Tag {
|
|||
if (!Object.prototype.hasOwnProperty.call(tag.attrs, 'priority')) {
|
||||
tag.attrs['priority'] = DefaultPriorities[tag.type];
|
||||
}
|
||||
if (!['true', 'false'].includes(tag.attrs['enable'])) {
|
||||
throw new Error(`Invalid value for enable attribute: ${tag.attrs['enable']}`);
|
||||
}
|
||||
|
||||
return tag;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue