From 661bc497891f3e4f6e2e329ab3c63d03a7b6ce99 Mon Sep 17 00:00:00 2001 From: Christoph Maser Date: Thu, 13 Jun 2024 18:47:47 +0200 Subject: [PATCH] update REFERENCE.md in renovate PRs --- .github/workflows/renovate.yml | 3 +++ renovate-config.json | 33 +++++++++++++++++++++++++++------ 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 5e2846fa..3c3f7cd1 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -17,5 +17,8 @@ jobs: with: configurationFile: renovate-config.json token: ${{ secrets.PCCIBOT_PAT_REPO_PUBLIC_REPO }} + docker-user: root + renovate-image: ghcr.io/renovatebot/renovate + renovate-version: 37-full env: LOG_LEVEL: 'debug' diff --git a/renovate-config.json b/renovate-config.json index f9eedf52..3fe94b44 100644 --- a/renovate-config.json +++ b/renovate-config.json @@ -2,15 +2,24 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "onboarding": false, "requireConfig": "optional", - "repositories": ["voxpupuli/puppet-prometheus"], - "extends": ["config:recommended"], - "enabledManagers": ["custom.regex"], + "repositories": [ + "voxpupuli/puppet-prometheus" + ], + "extends": [ + "config:recommended" + ], + "enabledManagers": [ + "custom.regex" + ], "prHourlyLimit": 10, "prConcurrentLimit": 20, + "branchConcurrentLimit": 30, "customManagers": [ { "customType": "regex", - "fileMatch": ["defaults.yaml"], + "fileMatch": [ + "defaults.yaml" + ], "matchStrings": [ "# renovate: depName=(?[^\\s]+?)\\s+[a-z0-9:_]+?::version:\\s+['\"]?(?[\\w+\\.]*)" ], @@ -18,12 +27,24 @@ }, { "customType": "regex", - "fileMatch": [".*_exporter.pp"], + "fileMatch": [ + ".*_exporter.pp" + ], "matchStrings": [ "# renovate: depName=(?[^\\s]+?)\\s+String\\[1\\]\\s+\\$version\\s+=\\s+['\"]?(?[\\w+\\.]*)" ], "datasourceTemplate": "github-releases" } - + ], + "postUpgradeTasks": { + "commands": [ + "bundle install", + "bundle exec rake strings:generate:reference" + ], + "executionMode": "branch" + }, + "allowedPostUpgradeCommands": [ + "^bundle install$", + "^bundle exec rake strings:generate:reference$" ] }