diff --git a/.github/actions/goreleaser/action.yml b/.github/actions/goreleaser/action.yml index 7c3ed78..31514f6 100644 --- a/.github/actions/goreleaser/action.yml +++ b/.github/actions/goreleaser/action.yml @@ -20,6 +20,10 @@ inputs: description: "GoReleaser Pro license key (for split/merge)" required: false default: "" + timeout: + description: "GoReleaser timeout for the whole step (Go duration, e.g. 60m). The continue command defaults to 30m, which cuts off slow multi-architecture docker builds." + required: false + default: "60m" homebrew-tap-token: description: "Homebrew tap token (optional)" required: false @@ -59,7 +63,7 @@ runs: with: distribution: goreleaser version: "~> v2" - args: release --clean + args: release --clean --timeout ${{ inputs.timeout }} env: GITHUB_TOKEN: ${{ inputs.github-token }} HOMEBREW_TAP_TOKEN: ${{ inputs.homebrew-tap-token }} @@ -71,7 +75,7 @@ runs: with: distribution: goreleaser-pro version: "~> v2" - args: release --clean --split + args: release --clean --split --timeout ${{ inputs.timeout }} env: GITHUB_TOKEN: ${{ inputs.github-token }} GORELEASER_KEY: ${{ inputs.goreleaser-key }} @@ -83,7 +87,7 @@ runs: with: distribution: goreleaser-pro version: "~> v2" - args: continue --merge + args: continue --merge --timeout ${{ inputs.timeout }} env: GITHUB_TOKEN: ${{ inputs.github-token }} GORELEASER_KEY: ${{ inputs.goreleaser-key }} diff --git a/.github/workflows/go-release-cgo.yaml b/.github/workflows/go-release-cgo.yaml index f5bcc3f..f8bf284 100644 --- a/.github/workflows/go-release-cgo.yaml +++ b/.github/workflows/go-release-cgo.yaml @@ -75,6 +75,11 @@ on: required: false type: string default: "" + release-timeout: + description: "GoReleaser timeout for the release step (Go duration)" + required: false + type: string + default: "60m" outputs: version: description: "The calculated version (without v prefix)" @@ -275,6 +280,7 @@ jobs: uses: lukaszraczylo/shared-actions/.github/actions/goreleaser@main with: version-tag: ${{ needs.version.outputs.version_tag }} + timeout: ${{ inputs.release-timeout }} mode: split cgo-enabled: "1" github-token: ${{ secrets.GITHUB_TOKEN }} @@ -354,6 +360,7 @@ jobs: uses: lukaszraczylo/shared-actions/.github/actions/goreleaser@main with: version-tag: ${{ needs.version.outputs.version_tag }} + timeout: ${{ inputs.release-timeout }} mode: merge github-token: ${{ secrets.GITHUB_TOKEN }} goreleaser-key: ${{ secrets.GORELEASER_PRO }} diff --git a/.github/workflows/go-release.yaml b/.github/workflows/go-release.yaml index ab4739a..b45404d 100644 --- a/.github/workflows/go-release.yaml +++ b/.github/workflows/go-release.yaml @@ -53,6 +53,11 @@ on: required: false type: string default: "" + release-timeout: + description: "GoReleaser timeout for the release step (Go duration)" + required: false + type: string + default: "60m" outputs: version: description: "The calculated version (without v prefix)" @@ -206,6 +211,7 @@ jobs: uses: lukaszraczylo/shared-actions/.github/actions/goreleaser@main with: version-tag: ${{ needs.version.outputs.version_tag }} + timeout: ${{ inputs.release-timeout }} mode: full github-token: ${{ secrets.GITHUB_TOKEN }} homebrew-tap-token: ${{ secrets.HOMEBREW_TAP_TOKEN }}