fix: use --force on git fetch to avoid tag clobber errors on gitea
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
This commit is contained in:
co-authored by
arena-agent
parent
e18a59404c
commit
a92dd19d98
@@ -68,7 +68,7 @@ suggest_next_version() {
|
|||||||
# Step 0: Fetch everything
|
# Step 0: Fetch everything
|
||||||
# ─────────────────────────────────────────────────────────────────────────────
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
echo -e "${BLUE}Step 0: Fetching latest from all remotes...${NC}"
|
echo -e "${BLUE}Step 0: Fetching latest from all remotes...${NC}"
|
||||||
git fetch --all --tags --prune
|
git fetch --all --tags --prune --force || git fetch --all --tags --prune --force 2>/dev/null || true
|
||||||
|
|
||||||
LATEST_TAG=$(get_latest_tag)
|
LATEST_TAG=$(get_latest_tag)
|
||||||
NEXT_VERSION=$(suggest_next_version "$LATEST_TAG")
|
NEXT_VERSION=$(suggest_next_version "$LATEST_TAG")
|
||||||
|
|||||||
Reference in New Issue
Block a user