chore: Move split by slash from renovate.json to bash script
Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
parent
5bbabebab7
commit
de352a19a5
2 changed files with 4 additions and 1 deletions
|
@ -90,7 +90,7 @@
|
|||
],
|
||||
"commitMessagePrefix": "chore({{parentDir}}):",
|
||||
"postUpgradeTasks": {
|
||||
"commands": ["./scripts/renovate-bump-version.sh -c {{parentDir}} -d {{{lookup (split depName '/') @last}}} -v {{newVersion}}"]
|
||||
"commands": ["./scripts/renovate-bump-version.sh -c {{parentDir}} -d {{ depName }} -v {{newVersion}}"]
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -19,6 +19,9 @@ if [ -z "${dependency_name}" ] || [ -z "${dependency_version}" ] || [ -z "${char
|
|||
fi
|
||||
|
||||
chart_yaml_path="charts/${chart}/Chart.yaml"
|
||||
# Split dependency by '/' and only use last element
|
||||
# This way we can drop prefixes like "argoproj/..." , "argoproj-labs/..." , "quay.io/foo/..."
|
||||
dependency_name="${dependency_name##*/}"
|
||||
|
||||
# Bump the chart version by one patch version
|
||||
version=$(grep '^version:' "${chart_yaml_path}" | awk '{print $2}')
|
||||
|
|
Loading…
Reference in a new issue