From 8c954ba74b000065b1af02dfd72c64352cba45a1 Mon Sep 17 00:00:00 2001 From: randogoth Date: Wed, 14 Oct 2026 13:29:20 +0300 Subject: [PATCH] fix: avoid grep -P for version extraction in release workflow The android runner's grep lacks PCRE support, so grep -oP failed silently inside command substitution, leaving VERSION_CODE/NAME empty and breaking the changelog lookup. Use plain bash parameter expansion instead. Co-Authored-By: Claude Sonnet 5 --- .forgejo/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 2e2b66a..5d1432f 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -14,8 +14,8 @@ jobs: - name: Extract version run: | VERSION=$(grep '^version:' pubspec.yaml | sed 's/version: //') - echo "VERSION_CODE=$(echo "$VERSION" | grep -oP '(?<=\+)\d+')" >> $GITHUB_ENV - echo "VERSION_NAME=$(echo "$VERSION" | grep -oP '^[^+]+')" >> $GITHUB_ENV + echo "VERSION_CODE=${VERSION##*+}" >> $GITHUB_ENV + echo "VERSION_NAME=${VERSION%%+*}" >> $GITHUB_ENV - name: Decode keystore run: |