diff --git a/.github/renovate.json5 b/.github/renovate.json5 index b300199..5fd46df 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -1,73 +1,76 @@ { - $schema: 'https://docs.renovatebot.com/renovate-schema.json', - extends: ['github>bfra-me/renovate-config#v1.24.0', 'github>bfra-me/renovate-config:automerge/prForCI#v1.24.0'], + $schema: "https://docs.renovatebot.com/renovate-schema.json", + extends: [ + "github>bfra-me/renovate-config#v1.24.0", + "github>bfra-me/renovate-config:automerge/prForCI#v1.24.0", + ], packageRules: [ { - matchDatasources: ['docker'], - matchPackagePrefixes: ['ghcr.io/home-assistant/', 'home-assistant/'], - groupName: 'Home Assistant Add-ons', - groupSlug: 'home-assistant-addons', + matchDatasources: ["docker"], + matchPackagePrefixes: ["ghcr.io/home-assistant/", "home-assistant/"], + groupName: "Home Assistant Add-ons", + groupSlug: "home-assistant-addons", }, { - matchPackageNames: ['hassio-addons/base'], - groupName: 'hassio-addons', + matchPackageNames: ["hassio-addons/base"], + groupName: "hassio-addons", }, { - matchPackageNames: ['hassio-addons/debian-base'], - groupName: 'hassio-addons', + matchPackageNames: ["hassio-addons/debian-base"], + groupName: "hassio-addons", }, { - matchPackageNames: ['hassio-addons/ubuntu-base'], - groupName: 'hassio-addons', + matchPackageNames: ["hassio-addons/ubuntu-base"], + groupName: "hassio-addons", }, { - matchManagers: ['github-actions'], - matchPackagePrefixes: ['frenck/'], - versioning: 'loose', + matchManagers: ["github-actions"], + matchPackagePrefixes: ["frenck/"], + versioning: "loose", }, { - matchDepPatterns: ['^home-assistant/actions(\\/.*)?$'], - groupName: 'Home Assistant Actions', + matchDepPatterns: ["^home-assistant/actions(\\/.*)?$"], + groupName: "Home Assistant Actions", }, { - matchPackageNames: ['home-assistant/builder'], - matchDepTypes: ['action'], - extractVersion: '^(?\\d+\\.\\d+\\.\\d+)$', - versioning: 'regex:^(?\\d+)\\.(?\\d+)\\.(?\\d+)$', - commitMessageExtra: 'to {{#if isPinDigest}}{{{newDigestShort}}}{{else}}{{#if newValue}}{{{newValue}}}{{else}}{{{newDigestShort}}}{{/if}}{{/if}}', + matchPackageNames: ["home-assistant/builder"], + matchDepTypes: ["action"], + extractVersion: "^(?\\d+\\.\\d+\\.\\d+)$", + versioning: "regex:^(?\\d+)\\.(?\\d+)\\.(?\\d+)$", + commitMessageExtra: "to {{#if isPinDigest}}{{{newDigestShort}}}{{else}}{{#if newValue}}{{{newValue}}}{{else}}{{{newDigestShort}}}{{/if}}{{/if}}", pinDigests: false, separateMajorMinor: false, separateMinorPatch: false, }, ], - regexManagers: [ + customManagers: [ { - customType: 'regex', - fileMatch: ['(^|/|\\.)build.ya?ml$'], + customType: "regex", + fileMatch: ["(^|/|\\.)build.ya?ml$"], matchStrings: [ - '(aarch64|amd64|armhf|armv7|i386):\\s+["\']?(?[a-z0-9.\\/-]+)(?::(?[a-z0-9.-]+))?(?:@(?sha256:[a-f0-9]+))?["\']?\\s', + "(aarch64|amd64|armhf|armv7|i386):\\s+[\"']?(?[a-z0-9.\\/-]+)(?::(?[a-z0-9.-]+))?(?:@(?sha256:[a-f0-9]+))?[\"']?\\s", ], - datasourceTemplate: 'docker', + datasourceTemplate: "docker", }, { - customType: 'regex', - fileMatch: ['(^|/|\\.)build.ya?ml$'], + customType: "regex", + fileMatch: ["(^|/|\\.)build.ya?ml$"], matchStrings: [ - '# renovate: datasource=(?[a-z-]+?) depName=(?[^\\s]+?)(?: (?:lookupName|packageName)=(?[^\\s]+?))?(?: versioning=(?[a-z-0-9]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:\\s*["\']?(?.+?)["\']?\\s', + "# renovate: datasource=(?[a-z-]+?) depName=(?[^\\s]+?)(?: (?:lookupName|packageName)=(?[^\\s]+?))?(?: versioning=(?[a-z-0-9]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:\\s*[\"']?(?.+?)[\"']?\\s", ], }, { - customType: 'regex', - fileMatch: ['^\\.github/(?:workflows|actions)/.+\\.ya?ml$'], + customType: "regex", + fileMatch: ["^\\.github/(?:workflows|actions)/.+\\.ya?ml$"], matchStrings: [ - 'uses:\\s+(?home-assistant\\/actions(?\\/.*)?)@(?[a-f0-9]+)', - 'uses:\\s+(?home-assistant\\/actions(?\\/.*)?)@(?master)', + "uses:\\s+(?home-assistant\\/actions(?\\/.*)?)@(?[a-f0-9]+)", + "uses:\\s+(?home-assistant\\/actions(?\\/.*)?)@(?master)", ], - currentValueTemplate: 'master', - autoReplaceStringTemplate: 'uses: {{depName}}@{{#if newDigest}}{{newDigest}}{{#if newValue}} # {{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}', - packageNameTemplate: 'https://github.com/home-assistant/actions', - depTypeTemplate: 'action', - datasourceTemplate: 'git-refs', + currentValueTemplate: "master", + autoReplaceStringTemplate: "uses: {{depName}}@{{#if newDigest}}{{newDigest}}{{#if newValue}} # {{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}", + packageNameTemplate: "https://github.com/home-assistant/actions", + depTypeTemplate: "action", + datasourceTemplate: "git-refs", }, ], }