We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f86d2b commit 037d6d8Copy full SHA for 037d6d8
.github/workflows/phar-build.yaml
@@ -25,7 +25,9 @@ jobs:
25
run: composer install --no-dev --optimize-autoloader
26
27
- name: Inject version from tag
28
- run: sed -i "s/public const VERSION = .*/public const VERSION = '${{ github.ref_name }}';/" src/Application.php
+ run: |
29
+ VERSION=$(echo "${{ github.ref_name }}" | sed 's/^\\//')
30
+ sed -i "s/public const VERSION = .*/public const VERSION = '$VERSION';/" src/Application.php
31
32
- name: Build PHAR
33
run: composer build-phar
0 commit comments