Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(ci): the release counts only plain vX.Y.Z tags, not the apps' TestFlight tags [skip ci]

Mauricee444e855c0de
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 3f788a3ef..d3aa2998d 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -140,7 +140,9 @@ jobs:
set -eu
# Derive version from git tags, no package.json dependency
- STABLE_TAG=$(git tag -l 'v[0-9]*.[0-9]*.[0-9]*' | grep -v '\-pre\.' | sort -V | tail -1)
+ # Only a plain vX.Y.Z is a release: the glob alone also matches the apps' TestFlight tags
+ # (v5.1.0-tf.15), whose suffix then broke the arithmetic below.
+ STABLE_TAG=$(git tag -l 'v[0-9]*.[0-9]*.[0-9]*' | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -1)
STABLE="${STABLE_TAG#v}"
STABLE="${STABLE:-0.0.0}"