Skip to content

Commit

Permalink
chore(renovate): use golang-version datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbrunet committed Aug 2, 2022
1 parent ae4b573 commit 99516c7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # tag=v3.2.1
with:
# renovate: datasource=docker depName=golang
go-version: 1.18.5
go-version-file: .go-version

- name: Set up Go mod cache
uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129 # tag=v3.0.5
Expand All @@ -57,8 +56,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # tag=v3.2.1
with:
# renovate: datasource=docker depName=golang
go-version: 1.18.5
go-version-file: .go-version

- name: Set up Go mod cache
uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129 # tag=v3.0.5
Expand Down
1 change: 1 addition & 0 deletions .go-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.18.5
22 changes: 11 additions & 11 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
"stabilityDays": 7
},
{
"description": "Rename golang docker tag to Golang",
"matchDatasources": ["docker"],
"matchPackageNames": ["golang"],
"matchPackagePatterns": ["/golang$"],
"commitMessageTopic": "Golang"
"description": "Group golang updates",
"matchDatasources": ["docker", "golang-version"],
"matchPackageNames": ["go", "golang"],
"commitMessageTopic": "golang",
"groupName": "go"
},
{
"description": "Group packages from aws-sdk-go-v2 monorepo together",
Expand All @@ -50,7 +50,7 @@
"semanticCommitType": "build"
},
{
"matchPackageNames": ["golang"],
"matchPackageNames": ["go"],
"matchUpdateTypes": ["patch", "minor", "major"],
"semanticCommitType": "build"
},
Expand All @@ -66,11 +66,11 @@
"matchStrings": ["# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>[^\\s]+?)(?: packageName=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[a-z-0-9]+?))?\\s*[\\w-_]*version: (?<currentValue>.*?)\\s"]
},
{
"description": "Update Golang in go.mod file",
"fileMatch": ["^go.mod$"],
"matchStrings": ["\\sgo (?<currentValue>.*?)\\s"],
"depNameTemplate": "golang",
"datasourceTemplate": "docker"
"description": "Update Golang in .go-version file",
"fileMatch": ["(^|/)\\.go-version$"],
"matchStrings": ["^\\s*(?<currentValue>.+?)\\s*$"],
"depNameTemplate": "go",
"datasourceTemplate": "golang-version"
},
{
"description": "Update semantic-release plugins",
Expand Down

0 comments on commit 99516c7

Please sign in to comment.