mirror of
https://github.com/lukaszraczylo/shared-actions.git
synced 2026-10-16 05:37:30 +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)"
|
description: "GoReleaser Pro license key (for split/merge)"
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
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:
|
homebrew-tap-token:
|
||||||
description: "Homebrew tap token (optional)"
|
description: "Homebrew tap token (optional)"
|
||||||
required: false
|
required: false
|
||||||
@@ -59,7 +63,7 @@ runs:
|
|||||||
with:
|
with:
|
||||||
distribution: goreleaser
|
distribution: goreleaser
|
||||||
version: "~> v2"
|
version: "~> v2"
|
||||||
args: release --clean
|
args: release --clean --timeout ${{ inputs.timeout }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ inputs.github-token }}
|
GITHUB_TOKEN: ${{ inputs.github-token }}
|
||||||
HOMEBREW_TAP_TOKEN: ${{ inputs.homebrew-tap-token }}
|
HOMEBREW_TAP_TOKEN: ${{ inputs.homebrew-tap-token }}
|
||||||
@@ -71,7 +75,7 @@ runs:
|
|||||||
with:
|
with:
|
||||||
distribution: goreleaser-pro
|
distribution: goreleaser-pro
|
||||||
version: "~> v2"
|
version: "~> v2"
|
||||||
args: release --clean --split
|
args: release --clean --split --timeout ${{ inputs.timeout }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ inputs.github-token }}
|
GITHUB_TOKEN: ${{ inputs.github-token }}
|
||||||
GORELEASER_KEY: ${{ inputs.goreleaser-key }}
|
GORELEASER_KEY: ${{ inputs.goreleaser-key }}
|
||||||
@@ -83,7 +87,7 @@ runs:
|
|||||||
with:
|
with:
|
||||||
distribution: goreleaser-pro
|
distribution: goreleaser-pro
|
||||||
version: "~> v2"
|
version: "~> v2"
|
||||||
args: continue --merge
|
args: continue --merge --timeout ${{ inputs.timeout }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ inputs.github-token }}
|
GITHUB_TOKEN: ${{ inputs.github-token }}
|
||||||
GORELEASER_KEY: ${{ inputs.goreleaser-key }}
|
GORELEASER_KEY: ${{ inputs.goreleaser-key }}
|
||||||
|
|||||||
@@ -75,6 +75,11 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
release-timeout:
|
||||||
|
description: "GoReleaser timeout for the release step (Go duration)"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: "60m"
|
||||||
outputs:
|
outputs:
|
||||||
version:
|
version:
|
||||||
description: "The calculated version (without v prefix)"
|
description: "The calculated version (without v prefix)"
|
||||||
@@ -275,6 +280,7 @@ jobs:
|
|||||||
uses: lukaszraczylo/shared-actions/.github/actions/goreleaser@main
|
uses: lukaszraczylo/shared-actions/.github/actions/goreleaser@main
|
||||||
with:
|
with:
|
||||||
version-tag: ${{ needs.version.outputs.version_tag }}
|
version-tag: ${{ needs.version.outputs.version_tag }}
|
||||||
|
timeout: ${{ inputs.release-timeout }}
|
||||||
mode: split
|
mode: split
|
||||||
cgo-enabled: "1"
|
cgo-enabled: "1"
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -354,6 +360,7 @@ jobs:
|
|||||||
uses: lukaszraczylo/shared-actions/.github/actions/goreleaser@main
|
uses: lukaszraczylo/shared-actions/.github/actions/goreleaser@main
|
||||||
with:
|
with:
|
||||||
version-tag: ${{ needs.version.outputs.version_tag }}
|
version-tag: ${{ needs.version.outputs.version_tag }}
|
||||||
|
timeout: ${{ inputs.release-timeout }}
|
||||||
mode: merge
|
mode: merge
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goreleaser-key: ${{ secrets.GORELEASER_PRO }}
|
goreleaser-key: ${{ secrets.GORELEASER_PRO }}
|
||||||
|
|||||||
@@ -53,6 +53,11 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
release-timeout:
|
||||||
|
description: "GoReleaser timeout for the release step (Go duration)"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: "60m"
|
||||||
outputs:
|
outputs:
|
||||||
version:
|
version:
|
||||||
description: "The calculated version (without v prefix)"
|
description: "The calculated version (without v prefix)"
|
||||||
@@ -206,6 +211,7 @@ jobs:
|
|||||||
uses: lukaszraczylo/shared-actions/.github/actions/goreleaser@main
|
uses: lukaszraczylo/shared-actions/.github/actions/goreleaser@main
|
||||||
with:
|
with:
|
||||||
version-tag: ${{ needs.version.outputs.version_tag }}
|
version-tag: ${{ needs.version.outputs.version_tag }}
|
||||||
|
timeout: ${{ inputs.release-timeout }}
|
||||||
mode: full
|
mode: full
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
homebrew-tap-token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
|
homebrew-tap-token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user