From b1fd1bd42fb1b29cb17233a083799436842e9f81 Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Tue, 20 Aug 2024 14:45:52 -0700 Subject: [PATCH] Update renovate config --- .pre-commit-config.yaml | 1 + default.json | 23 ++++++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 518db12..f36d716 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,6 +24,7 @@ repos: - id: no-commit-to-branch - id: requirements-txt-fixer - id: fix-byte-order-marker + - id: detect-private-key - repo: https://github.com/gitleaks/gitleaks rev: v8.18.4 diff --git a/default.json b/default.json index c0bbb66..5c531be 100644 --- a/default.json +++ b/default.json @@ -53,6 +53,27 @@ "\\suses: (?[\\w-]+/[\\w-]+)(?/.*)?@(?[a-z0-9]{40}|[a-z0-9]{64}) # (?v\\d+\\.\\d+\\.\\d+)" ], "versioningTemplate": "semver" + }, + { + "description": "Update _VERSION variables in shell scripts and Makefiles", + "fileMatch": [ + "\\.sh$", + "(^|/)Makefile$" + ], + "matchStrings": [ + "# renovate: datasource=(?[a-z-]+?) depName=(?.+?)(?: (?:packageName|lookupName)=(?.+?))?(?: versioning=(?[a-z-]+?))?\\s[A-Z_]+?_VERSION = (?.+?)\\s" + ] + }, + { + "description": "Update `version:` and `_VERSION:` variables in github workflows", + "fileMatch": [ + "^\\.github/workflows/[^/]+\\.ya?ml$" + ], + "matchStrings": [ + "\\s+(?:[a-z]-)?version: (?.+?) # renovate: datasource=(?.+?) depName=(?.+?)(?: (?:packageName|lookupName)=(?.+?))?(?: versioning=(?.+?))?\\s", + "\\s*[A-Z_]+?_VERSION: (?.+?) # renovate: datasource=(?.+?) depName=(?.+?)(?: (?:packageName|lookupName)=(?.+?))?(?: versioning=(?.+?))?\\s" + ] } - ] + ], + "timezone": "America/Los_Angeles" }