diff --git a/.github/workflows/base-ci-goreleaser.yaml b/.github/workflows/base-ci-goreleaser.yaml index 0747f0a9..d5952c67 100644 --- a/.github/workflows/base-ci-goreleaser.yaml +++ b/.github/workflows/base-ci-goreleaser.yaml @@ -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: @@ -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: diff --git a/.github/workflows/base-release.yaml b/.github/workflows/base-release.yaml index 91010577..788d9886 100644 --- a/.github/workflows/base-release.yaml +++ b/.github/workflows/base-release.yaml @@ -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: @@ -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: @@ -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: diff --git a/.github/workflows/builder-release.yaml b/.github/workflows/builder-release.yaml index b63aeed7..0b266648 100644 --- a/.github/workflows/builder-release.yaml +++ b/.github/workflows/builder-release.yaml @@ -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 @@ -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 }} diff --git a/.github/workflows/builder-testbuild.yaml b/.github/workflows/builder-testbuild.yaml index 62e58d54..c9991f94 100644 --- a/.github/workflows/builder-testbuild.yaml +++ b/.github/workflows/builder-testbuild.yaml @@ -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 @@ -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 }} @@ -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 }} diff --git a/renovate.json b/renovate.json index 50d01060..c028093f 100644 --- a/renovate.json +++ b/renovate.json @@ -8,7 +8,10 @@ "go": "1.22" }, "schedule": ["every tuesday"], - "extends": ["config:recommended"], + "extends": [ + "config:recommended", + "customManagers:githubActionsVersions" + ], "packageRules": [ { "matchManagers": ["gomod"], @@ -69,19 +72,29 @@ "matchManagers": ["gomod"], "matchDepTypes": ["toolchain"], "enabled": false - } - ], - "customManagers": [ + }, + { + "matchManagers": ["custom.regex"], + "matchPackageNames": [ + "goreleaser/goreleaser-pro" + ], + "extractVersion": "^(?.*)-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: (?.*?)$" + "versioning": "regex:^v?(?\\d+)\\.(?\\d+)\\.(?\\d+)?-(?.*)$" + }, + { + "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,