Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] fix renovate regex config for good #737

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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