2
0
Fork 0
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:
CrazyMax 2022-04-25 13:41:39 +02:00
parent 535130561a
commit e1a45f6e54
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
7 changed files with 179 additions and 40 deletions

View file

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