diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..ae111aa --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,16 @@ +{ + "extends": [ + "config:recommended" + ], + "regexManagers": [ + { + "fileMatch": [ + "*.sls" + ], + "matchStrings": [ + "# renovate:\\sdatasource=(?.*?)\\sdepName=(?.*?)( versioning=(?.*?))?\\s.*?version\\s=\\s\"(?.*)\"\\s-.*?\\s.*?hash\\s=\\s\"(?.*?)\"" + ], + "versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}" + } + ] +} \ No newline at end of file diff --git a/renovate.json b/renovate.json deleted file mode 100644 index b42c4fb..0000000 --- a/renovate.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": [ - "config:recommended" - ] -} diff --git a/sift/packages/powershell.sls b/sift/packages/powershell.sls index ccffd66..d1cba0e 100644 --- a/sift/packages/powershell.sls +++ b/sift/packages/powershell.sls @@ -1,7 +1,8 @@ -{%- set base_url = "https://github.com/Powershell/Powershell/releases/download/v" -%} +# renovate: datasource=github-release-attachments depName=Powershell/Powershell {%- set version = "7.4.1" -%} -{%- set filename = "powershell_7.4.1-1.deb_amd64.deb" -%} {%- set hash = "625B7EE0B71147421723CB6022A41B5D8FC0D6E19DF25B1240008EE491BF6997" -%} +{%- set filename = "powershell_{{ version }}-1.deb_amd64.deb" -%} +{%- set base_url = "https://github.com/Powershell/Powershell/releases/download/v" -%} include: - sift.packages.libicu