generated from helm/charts-repo-actions-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrenovate.json
24 lines (24 loc) · 927 Bytes
/
renovate.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>damoun/renovate-config"
],
"bumpVersion": "minor",
"packageRules": [
{
"matchManagers": [
"helm-requirements",
"helm-values"
],
"postUpgradeTasks": {
"commands": [
"version=$(grep '^version:' charts/{{{parentDir}}}/Chart.yaml | awk '{print $2}') && major=$(echo $version | cut -d. -f1) && minor=$(echo $version | cut -d. -f2) && minor=$(expr $minor + 1) && echo \"Replacing $version with $major.$minor.0\" && sed -i \"s/^version:.*/version: ${major}.${minor}.0/g\" charts/{{{parentDir}}}/Chart.yaml && sed -i \"s/^appVersion:.*/appVersion: \\\"{{newVersion}}\\\"/g\" charts/{{{parentDir}}}/Chart.yaml && cat charts/{{{parentDir}}}/Chart.yaml"
],
"fileFilters": [
"**/Chart.yaml"
],
"executionMode": "branch"
}
}
]
}