Skip to content

Commit

Permalink
Merge pull request #777 from voxpupuli/renovate_update_reference
Browse files Browse the repository at this point in the history
Renovate update reference
  • Loading branch information
Christoph Maser authored Jun 14, 2024
2 parents 2365e23 + 7da5b27 commit 5d66ceb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ on:

jobs:
renovate:
permissions:
contents: read
issues: read
pull-requests: write
repository-projects: read
statuses: read
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -22,6 +16,8 @@ jobs:
uses: renovatebot/[email protected]
with:
configurationFile: renovate-config.json
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PCCIBOT_PAT_REPO_PUBLIC_REPO }}
renovate-image: ghcr.io/renovatebot/renovate
renovate-version: 37-full
env:
LOG_LEVEL: 'debug'
35 changes: 29 additions & 6 deletions renovate-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,51 @@
"$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=(?<depName>[^\\s]+?)\\s+[a-z0-9:_]+?::version:\\s+['\"]?(?<currentValue>[\\w+\\.]*)"
],
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"fileMatch": [".*_exporter.pp"],
"fileMatch": [
".*_exporter.pp"
],
"matchStrings": [
"# renovate: depName=(?<depName>[^\\s]+?)\\s+String\\[1\\]\\s+\\$version\\s+=\\s+['\"]?(?<currentValue>[\\w+\\.]*)"
],
"datasourceTemplate": "github-releases"
}

],
"postUpgradeTasks": {
"commands": [
"bundle install",
"bundle exec gem install rake",
"bundle exec rake strings:generate:reference"
],
"executionMode": "branch"
},
"allowedPostUpgradeCommands": [
"^bundle install$",
"^bundle exec gem install rake$",
"^bundle exec rake strings:generate:reference$"
]
}

0 comments on commit 5d66ceb

Please sign in to comment.