Skip to content

Commit

Permalink
[chore] fix renovate regex config for good (#737)
Browse files Browse the repository at this point in the history
* fix renovate regex config for good

Signed-off-by: Moritz Wiesinger <[email protected]>

* trigger build

* trigger build

---------

Signed-off-by: Moritz Wiesinger <[email protected]>
  • Loading branch information
mowies authored Nov 20, 2024
1 parent dc1bada commit 1eb7603
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 17 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/base-ci-goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
required: true
type: string

env:
# renovate: datasource=github-tags depName=goreleaser-pro packageName=goreleaser/goreleaser-pro
GORELEASER_PRO_VERSION: v2.4.1

jobs:
check-goreleaser:
strategy:
Expand Down Expand Up @@ -67,7 +71,7 @@ jobs:
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
with:
distribution: goreleaser-pro
version: v2.3.2
version: ${{ env.GORELEASER_PRO_VERSION }}
workdir: distributions/${{ inputs.distribution }}
args: --snapshot --clean --skip=sign,sbom --timeout 2h --split
env:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/base-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
required: true
type: string

env:
# renovate: datasource=github-tags depName=goreleaser-pro packageName=goreleaser/goreleaser-pro
GORELEASER_PRO_VERSION: v2.4.1

jobs:
prepare:
strategy:
Expand Down Expand Up @@ -83,7 +87,7 @@ jobs:
- uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
with:
distribution: goreleaser-pro
version: v2.3.2
version: ${{ env.GORELEASER_PRO_VERSION }}
workdir: distributions/${{ inputs.distribution }}
args: release --clean --split --timeout 2h --release-header-tmpl=../../.github/release-template.md
env:
Expand Down Expand Up @@ -155,7 +159,7 @@ jobs:
- uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
with:
distribution: goreleaser-pro
version: v2.2.0
version: ${{ env.GORELEASER_PRO_VERSION }}
workdir: distributions/${{ inputs.distribution }}
args: continue --merge --timeout 2h
env:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/builder-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
tags:
- "v*"

env:
# renovate: datasource=github-tags depName=goreleaser-pro packageName=goreleaser/goreleaser-pro
GORELEASER_PRO_VERSION: v2.4.1

jobs:
goreleaser:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -63,7 +67,7 @@ jobs:
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
with:
distribution: goreleaser-pro
version: v2.2.0
version: ${{ env.GORELEASER_PRO_VERSION }}
args: release --clean -f cmd/builder/.goreleaser.yml
env:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/builder-testbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ on:
- "go.mod"
- "go.sum"

env:
# renovate: datasource=github-tags depName=goreleaser-pro packageName=goreleaser/goreleaser-pro
GORELEASER_PRO_VERSION: v2.4.1

jobs:
check-goreleaser:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -52,7 +56,7 @@ jobs:
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
with:
distribution: goreleaser-pro
version: v2.2.0
version: ${{ env.GORELEASER_PRO_VERSION }}
args: check --verbose -f cmd/builder/.goreleaser.yml
env:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
Expand All @@ -61,7 +65,7 @@ jobs:
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
with:
distribution: goreleaser-pro
version: v2.2.0
version: ${{ env.GORELEASER_PRO_VERSION }}
args: --snapshot --clean -f cmd/builder/.goreleaser.yml
env:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
Expand Down
35 changes: 24 additions & 11 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"go": "1.22"
},
"schedule": ["every tuesday"],
"extends": ["config:recommended"],
"extends": [
"config:recommended",
"customManagers:githubActionsVersions"
],
"packageRules": [
{
"matchManagers": ["gomod"],
Expand Down Expand Up @@ -69,19 +72,29 @@
"matchManagers": ["gomod"],
"matchDepTypes": ["toolchain"],
"enabled": false
}
],
"customManagers": [
},
{
"matchManagers": ["custom.regex"],
"matchPackageNames": [
"goreleaser/goreleaser-pro"
],
"extractVersion": "^(?<version>.*)-pro$"
},
{
"customType": "regex",
"fileMatch": [
"(^|\\/).github\\/.*\\.ya?ml$"
"matchManagers": ["gomod"],
"matchPackageNames": [
"github.com/goreleaser/goreleaser-pro/v2",
"github.com/goreleaser/goreleaser-pro"
],
"matchStrings": [
"goreleaser\\/goreleaser-action@[\\S\\s]+?version: (?<currentValue>.*?)$"
"versioning": "regex:^v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?-(?<compatibility>.*)$"
},
{
"matchPackageNames": [
"goreleaser/goreleaser-pro",
"github.com/goreleaser/goreleaser-pro/v2",
"github.com/goreleaser/goreleaser-pro"
],
"depNameTemplate": "github.com/goreleaser/goreleaser-pro",
"datasourceTemplate": "github-releases"
"groupName": "GoReleaser Pro"
}
],
"prConcurrentLimit": 200,
Expand Down

0 comments on commit 1eb7603

Please sign in to comment.