fix: avoid grep -P for version extraction in release workflow
All checks were successful
Release APK / build (push) Successful in 2m21s

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 <noreply@anthropic.com>
This commit is contained in:
randogoth 2026-10-14 13:29:20 +03:00
parent abb3dcca43
commit 8c954ba74b

View file

@ -14,8 +14,8 @@ jobs:
- name: Extract version - name: Extract version
run: | run: |
VERSION=$(grep '^version:' pubspec.yaml | sed 's/version: //') VERSION=$(grep '^version:' pubspec.yaml | sed 's/version: //')
echo "VERSION_CODE=$(echo "$VERSION" | grep -oP '(?<=\+)\d+')" >> $GITHUB_ENV echo "VERSION_CODE=${VERSION##*+}" >> $GITHUB_ENV
echo "VERSION_NAME=$(echo "$VERSION" | grep -oP '^[^+]+')" >> $GITHUB_ENV echo "VERSION_NAME=${VERSION%%+*}" >> $GITHUB_ENV
- name: Decode keystore - name: Decode keystore
run: | run: |