From ba894bcdfea2defa859db6f131b8276f67f51723 Mon Sep 17 00:00:00 2001 From: Mogyuchi Date: Thu, 23 May 2024 11:29:37 +0900 Subject: [PATCH] ci: renovate (#752) --- .github/{renovate.json5 => renovate.json} | 24 +++++++++++------------ .github/workflows/renovate.yml | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) rename .github/{renovate.json5 => renovate.json} (75%) diff --git a/.github/renovate.json5 b/.github/renovate.json similarity index 75% rename from .github/renovate.json5 rename to .github/renovate.json index abec1c7a3..406cde32d 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json @@ -5,14 +5,14 @@ "config:js-app", ":automergeAll", ":automergePr", - // ":disablePrControls", + ":disablePrControls", ":labels(dependencies, semver:none)", ":maintainLockFilesWeekly", ":pathSemanticCommitType(.github/workflows/**, ci)", ":prHourlyLimitNone", ":rebaseStalePrs", ":semanticCommits", - // "customManagers:githubActionsVersions", + "customManagers:githubActionsVersions", "security:openssf-scorecard" ], "automergeStrategy": "squash", @@ -32,6 +32,16 @@ "dependencies", "semver:patch" ] + }, + { + "matchManagers": [ + "regex" + ], + "matchFileNames": [ + "(^|/)(workflow-templates|\\.(?:github|gitea|forgejo)/(?:workflows|actions))/.+\\.ya?ml$", + "(^|/)action\\.ya?ml$" + ], + "pinDigests": false } ], "customManagers": [ @@ -45,16 +55,6 @@ ], "depNameTemplate": "node", "datasourceTemplate": "node-version" - }, - { - "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]+?))?(?: pinDigests=(?[^\\s]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:\\s*[\"']?(?.+?)[\"']?\\s" - ] } ] } diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 9c6f116d5..632c94294 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -48,7 +48,7 @@ env: # This can be manually changed to bust the cache if neccessary. cache_key: renovate-cache # tool versions - # renovate: datasource=docker depName=renovate packageName=ghcr.io/renovatebot/renovate pinDigests=false + # renovate: datasource=docker depName=renovate packageName=ghcr.io/renovatebot/renovate RENOVATE_VERSION: 37.372.1 jobs: @@ -108,7 +108,7 @@ jobs: - uses: renovatebot/github-action@063e0c946b9c1af35ef3450efc44114925d6e8e6 # v40.1.11 with: - configurationFile: .github/renovate.json5 + configurationFile: .github/renovate.json token: ${{ steps.generate_token.outputs.token }} renovate-version: ${{ env.RENOVATE_VERSION }} env-regex: "^(?:RENOVATE_\\w+|LOG_LEVEL|FORCE_COLOR)$"