Skip to content

Commit

Permalink
chore(renovate): track versions in chezmoi configs
Browse files Browse the repository at this point in the history
  • Loading branch information
scottames committed May 5, 2023
1 parent 0965dba commit 8c5154c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,24 @@
commitMessageTopic: '⇡ terraform {{depName}}',
enabled: true
},
"regexManagers": [
{
"fileMatch": [
"\\.chezmoiexternal\\.toml(?:\\.tmpl)?$"
],
"matchStrings": [
"# renovate: depName=(?<depName>.*) datasource=(?<datasource>.*)\\n.*?ersion := \"(?<currentValue>.+)\\b\""
]
},
{
"fileMatch": [
"\\.chezmoiscripts\\/.+\\.sh(?:\\.tmpl)?$"
],
"matchStrings": [
"# renovate: depName=(?<depName>.*) datasource=(?<datasource>.*)\\n.*?[vV][eE][rR][sS][iI][oO][nN]=(?<currentValue>.+)\\b"
],
},
],
packageRules: [
{
matchFiles: [
Expand Down
6 changes: 3 additions & 3 deletions home/.chezmoiscripts/run_once_after_10_aqua.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cyan='\033[0;36m'
clear='\033[0m'

# renovate: depName=aquaproj/aqua datasource=github-releases
_aqua_latest=v2.3.6
_aqua_latest_version=v2.3.6

# renovate: depName=aquaproj/aqua-installer datasource=github-releases
_aqua_installer_version=v1.2.0
Expand All @@ -27,7 +27,7 @@ else
_aqua_current="none"
fi

printf "\n${cyan}💧 aqua${clear}\n---\n${magenta} - latest: %s\n - current: %s${clear}\n\n" "${_aqua_latest}" "${_aqua_current}"
printf "\n${cyan}💧 aqua${clear}\n---\n${magenta} - latest: %s\n - current: %s${clear}\n\n" "${_aqua_latest_version}" "${_aqua_current}"

if [[ ! $(command -v aqua) ]]; then
# ensure AQUA vars are set
Expand All @@ -51,7 +51,7 @@ if [[ ! $(command -v aqua) ]]; then
eval "$(grep AQUA < ${HOME}/.bashrc)"

popd
elif [[ "${_aqua_latest}" != "${_aqua_current}" ]]; then
elif [[ "${_aqua_latest_version}" != "${_aqua_current}" ]]; then
aqua update-aqua
else
printf "\n${cyan}💧 ${magenta}%s${clear}\n\n" " aqua installed and up to date"
Expand Down

0 comments on commit 8c5154c

Please sign in to comment.