From 0f464d1d6cdb9e38c861de23a21e93412b775f61 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Mon, 18 Nov 2024 11:14:45 -0600 Subject: [PATCH] ci(renovate): Add custom VERSION updates in GitHub actions https://docs.renovatebot.com/presets-customManagers/#custommanagersgithubactionsversions --- .github/renovate.json5 | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 46af7821e36..eacaed1524b 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -7,8 +7,24 @@ "prHeader": "## WARNING\n - [ ] I have made sure to update the singularity and conda images", "packageRules": [ { - "matchDatasources": ["conda", "pypi", "docker"], + "matchDatasources": [ + "conda", + "pypi", + "docker" + ], "automerge": false } - ] + ], + "customManagers": [ + { + "customType": "regex", + "fileMatch": [ + "(^|/)(workflow-templates|\\.(?:github|gitea|forgejo)/(?:workflows|actions))/.+\\.ya?ml$", + "(^|/)action\\.ya?ml$" + ], + "matchStrings": [ + "# renovate: datasource=(?[a-z-.]+?) depName=(?[^\\s]+?)(?: (?:lookupName|packageName)=(?[^\\s]+?))?(?: versioning=(?[^\\s]+?))?(?: extractVersion=(?[^\\s]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:\\s*[\"']?(?.+?)[\"']?\\s" + ] + } + ] }