Skip to content

Commit 037d6d8

Browse files
Attempt to fix the phar build process
1 parent 1f86d2b commit 037d6d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/phar-build.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
run: composer install --no-dev --optimize-autoloader
2626

2727
- name: Inject version from tag
28-
run: sed -i "s/public const VERSION = .*/public const VERSION = '${{ github.ref_name }}';/" src/Application.php
28+
run: |
29+
VERSION=$(echo "${{ github.ref_name }}" | sed 's/^\\//')
30+
sed -i "s/public const VERSION = .*/public const VERSION = '$VERSION';/" src/Application.php
2931
3032
- name: Build PHAR
3133
run: composer build-phar

0 commit comments

Comments
 (0)