tea releases create fails if a release already exists, leaving stale binaries on tag re-push. Delete any existing release for the tag first so re-runs self-heal.
This commit is contained in:
@@ -51,6 +51,9 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
tea login delete ci >/dev/null 2>&1 || true
|
tea login delete ci >/dev/null 2>&1 || true
|
||||||
tea login add --name ci --url https://git.mroberts.dev --token "$GITEA_TOKEN"
|
tea login add --name ci --url https://git.mroberts.dev --token "$GITEA_TOKEN"
|
||||||
|
# Idempotent: drop any existing release for this tag so re-runs replace
|
||||||
|
# stale assets instead of failing with "already a release for this tag".
|
||||||
|
tea releases delete -y --login ci --repo mroberts/sush "$TAG" >/dev/null 2>&1 || true
|
||||||
tea releases create \
|
tea releases create \
|
||||||
--login ci \
|
--login ci \
|
||||||
--repo mroberts/sush \
|
--repo mroberts/sush \
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ import (
|
|||||||
"github.com/carlosarraes/shush/internal/types"
|
"github.com/carlosarraes/shush/internal/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var version = "0.6.0"
|
var version = "0.6.1"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
var cliArgs types.CLI
|
var cliArgs types.CLI
|
||||||
|
|||||||
Reference in New Issue
Block a user