Skip to content

Commit 1b45278

Browse files
committed
Update
1 parent 806dd0b commit 1b45278

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/size-analysis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ jobs:
5555
# Remove any + suffix first (for pubspec.yaml versions like 1.2.3+4)
5656
version=${version_line%%+*}
5757
58-
# Parse version: x.y.z-suffix.n → build_name=x.y.z-suffix, build_number=n
58+
# Parse version: x.y.z-suffix.n → build_name=x.y.z, build_number=n
5959
# Supports: x.y.z, x.y.z-alpha.n, x.y.z-beta.n, x.y.z-rc.n, etc.
60-
if [[ $version =~ ^([0-9]+\.[0-9]+\.[0-9]+-[a-zA-Z]+)\.([0-9]+)$ ]]; then
60+
# Note: build_name is x.y.z only (plist/Android compatibility)
61+
if [[ $version =~ ^([0-9]+\.[0-9]+\.[0-9]+)-[a-zA-Z]+\.([0-9]+)$ ]]; then
6162
build_name="${BASH_REMATCH[1]}"
6263
build_number="${BASH_REMATCH[2]}"
6364
elif [[ $version =~ ^([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then
@@ -147,9 +148,10 @@ jobs:
147148
# Remove any + suffix first (for pubspec.yaml versions like 1.2.3+4)
148149
version=${version_line%%+*}
149150
150-
# Parse version: x.y.z-suffix.n → build_name=x.y.z-suffix, build_number=n
151+
# Parse version: x.y.z-suffix.n → build_name=x.y.z, build_number=n
151152
# Supports: x.y.z, x.y.z-alpha.n, x.y.z-beta.n, x.y.z-rc.n, etc.
152-
if [[ $version =~ ^([0-9]+\.[0-9]+\.[0-9]+-[a-zA-Z]+)\.([0-9]+)$ ]]; then
153+
# Note: build_name is x.y.z only (plist/Android compatibility)
154+
if [[ $version =~ ^([0-9]+\.[0-9]+\.[0-9]+)-[a-zA-Z]+\.([0-9]+)$ ]]; then
153155
build_name="${BASH_REMATCH[1]}"
154156
build_number="${BASH_REMATCH[2]}"
155157
elif [[ $version =~ ^([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then

0 commit comments

Comments
 (0)