mirror of
https://github.com/lukaszraczylo/shared-actions.git
synced 2026-10-13 04:58:51 +00:00
fix(release): pass a GoReleaser timeout of 60 minutes
The continue command that merges split builds stops after 30 minutes by default. A slow multi-architecture docker build under QEMU hit that limit and the superclaw release failed with context canceled after 30 minutes. The goreleaser action takes a timeout input, default 60m, and passes it to release, release --split and continue --merge. The release workflows expose it as release-timeout.
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user