From c0332c6eca3463037844c9d2524e54c967edb09e Mon Sep 17 00:00:00 2001 From: AminBhst Date: Tue, 29 Oct 2024 00:34:29 +0330 Subject: [PATCH] Update version regex --- .github/workflows/release-all-platforms.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-all-platforms.yml b/.github/workflows/release-all-platforms.yml index 040ace4..5ec9fe6 100644 --- a/.github/workflows/release-all-platforms.yml +++ b/.github/workflows/release-all-platforms.yml @@ -28,7 +28,7 @@ jobs: - name: Extract Version from pubspec.yaml id: extract_version run: | - $VERSION = Select-String -Path ".\pubspec.yaml" -Pattern "version: (\d+\.\d+\.\d+)" -CaseSensitive | ForEach-Object{ $_.Matches.Groups[1].Value } + $VERSION = Select-String -Path ".\pubspec.yaml" -Pattern "^\s*version:\s*(\d+\.\d+\.\d+)" -CaseSensitive | ForEach-Object{ $_.Matches.Groups[1].Value } echo version=$VERSION >> $env:GITHUB_OUTPUT Build-windows: