fix(ci): use sed instead of grep -P for version extraction
Some checks failed
Build MapleDeploy Coolify Image / build (push) Failing after 12s
Some checks failed
Build MapleDeploy Coolify Image / build (push) Failing after 12s
BusyBox grep (on Alpine) doesn't support -P (Perl regex).
This commit is contained in:
parent
11f3ba7932
commit
70554cd58a
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ jobs:
|
|||
- name: Get version
|
||||
id: version
|
||||
run: |
|
||||
VERSION=$(grep -oP "'version' => '\K[^']+" config/constants.php)
|
||||
VERSION=$(sed -n "s/.*'version' => '\([^']*\)'.*/\1/p" config/constants.php)
|
||||
echo "VERSION=${VERSION}" >> "$GITHUB_OUTPUT"
|
||||
echo "Building version: ${VERSION}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue