Skip to content

Commit

Permalink
fix: fix the support of devcontainer (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke authored May 7, 2024
1 parent 8277080 commit fdea3ce
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
17 changes: 14 additions & 3 deletions default.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"fileMatch": [
"^action\\.ya?ml$",
"^\\.github/.*\\.ya?ml$",
"^\\.circleci/config\\.yml$",
"^\\.devcontainer\\.json$",
"^\\.devcontainer/devcontainer\\.json$"
"^\\.circleci/config\\.yml$"
],
"matchStrings": [
" +(?:aqua_version|'aqua_version'|\"aqua_version\") *: +(?<currentValue>[^'\" \\n]+)",
Expand All @@ -18,6 +16,19 @@
],
"versioningTemplate": "semver"
},
{
"customType": "regex",
"datasourceTemplate": "github-releases",
"depNameTemplate": "aquaproj/aqua",
"fileMatch": [
"^\\.devcontainer\\.json$",
"^\\.devcontainer/devcontainer\\.json$"
],
"matchStrings": [
" +\"aqua_version\" *: +\"(?<currentValue>[^'\" \\n]+)\""
],
"versioningTemplate": "semver"
},
{
"customType": "regex",
"datasourceTemplate": "github-releases",
Expand Down
17 changes: 15 additions & 2 deletions jsonnet/default.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ local utils = import 'utils.libsonnet';
'^action\\.ya?ml$',
'^\\.github/.*\\.ya?ml$',
'^\\.circleci/config\\.yml$',
'^\\.devcontainer\\.json$',
'^\\.devcontainer/devcontainer\\.json$',
],
matchStrings: [
' +%s *: +%s' % [utils.wrapQuote('aqua_version'), utils.currentValue],
Expand All @@ -44,6 +42,21 @@ local utils = import 'utils.libsonnet';
depNameTemplate: 'aquaproj/aqua',
datasourceTemplate: 'github-releases',
},
{
// Update aqua-installer action
customType: 'regex',
fileMatch: [
'^\\.devcontainer\\.json$',
'^\\.devcontainer/devcontainer\\.json$',
],
matchStrings: [
// "aqua_version": "v2.27.0"
' +"aqua_version" *: +"%s"' % [utils.currentValue],
],
versioningTemplate: 'semver', // https://github.com/renovatebot/renovate/discussions/28150#discussioncomment-8925362
depNameTemplate: 'aquaproj/aqua',
datasourceTemplate: 'github-releases',
},
utils.aquaRenovateConfigPreset {
fileMatch: [
'^renovate\\.json5?$',
Expand Down

0 comments on commit fdea3ce

Please sign in to comment.