fix: avoid grep -P for version extraction in release workflow
All checks were successful
Release APK / build (push) Successful in 2m21s
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:
parent
abb3dcca43
commit
8c954ba74b
1 changed files with 2 additions and 2 deletions
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue