Skip to content

Commit

Permalink
Merge pull request #93 from aquaproj/feat/update-go
Browse files Browse the repository at this point in the history
feat: support updating `golang/go`
  • Loading branch information
suzuki-shunsuke authored Jan 2, 2022
2 parents 52e0318 + 0ee73db commit 8b222f0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ https://aquaproj.github.io/
* GitHub Actions [aquaproj/aqua-installer](https://github.com/aquaproj/aqua-installer)'s `aqua_version`
* [aquaproj/aqua-renovate-config](https://github.com/aquaproj/aqua-renovate-config)
* [kubernetes-sigs/kustomize](https://github.com/kubernetes-sigs/kustomize)
* [golang/go](https://github.com/golang/go)
* [base](base.json)
* aqua.yaml
* [action](action.json)
Expand All @@ -30,6 +31,8 @@ https://aquaproj.github.io/
* the shell script [aquaproj/aqua-installer](https://github.com/aquaproj/aqua-installer). `fileMatch` is parameterized
* [kubernetes-sigs-kustomize](kubernetes-sigs-kustomize.json)
* [kubernetes-sigs/kustomize](https://github.com/kubernetes-sigs/kustomize). `fileMatch` is parameterized
* [golang-go](golang-go.json)
* [golang/go](https://github.com/golang/go). `fileMatch` is parameterized

## How to use

Expand Down
10 changes: 10 additions & 0 deletions default.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@
"extractVersionTemplate": "^kustomize/(?<version>.*)$",
"datasourceTemplate": "github-releases",
"depNameTemplate": "kubernetes-sigs/kustomize"
},
{
"fileMatch": ["\\.?aqua\\.ya?ml"],
"matchStrings": [
" +['\"]?version['\"]? *: +['\"]?(?<currentValue>[^'\" \\n]+)['\"]? +# renovate: depName=golang/go[ \\n]",
" +['\"]?name['\"]? *: +['\"]?golang/go@(?<currentValue>[^'\" \\n]+)['\"]?"
],
"extractVersionTemplate": "^go(?<version>.*)$",
"datasourceTemplate": "github-tags",
"depNameTemplate": "golang/go"
}
]
}
14 changes: 14 additions & 0 deletions golang-go.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"regexManagers": [
{
"fileMatch": ["{{arg0}}"],
"matchStrings": [
" +['\"]?version['\"]? *: +['\"]?(?<currentValue>[^'\" \\n]+)['\"]? +# renovate: depName=golang/go[ \\n]",
" +['\"]?name['\"]? *: +['\"]?golang/go@(?<currentValue>[^'\" \\n]+)['\"]?"
],
"extractVersionTemplate": "^go(?<version>.*)$",
"datasourceTemplate": "github-tags",
"depNameTemplate": "golang/go"
}
]
}

0 comments on commit 8b222f0

Please sign in to comment.