Skip to content

Commit

Permalink
Extract just the tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo committed Sep 4, 2020
1 parent 4ce7429 commit 3d3867a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
- name: Get current time
uses: 1466587594/get-current-time@v2
id: current-time
- name: Get the version
id: current-version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand All @@ -23,7 +26,7 @@ jobs:
- name: Install Composer dependencies
run: composer install --no-progress --no-suggest
- name: Update box.json
run: sed -i 's/##version##/${{ github.ref }}/g; s/##datetime##/${{ steps.current-time.outputs.time }}/g' box.json
run: sed -i 's/##version##/${{ steps.current-version.outputs.VERSION }}/g; s/##datetime##/${{ steps.current-time.outputs.time }}/g' box.json
- name: Build project
run: ./vendor/bin/box compile
- name: Create release
Expand Down

0 comments on commit 3d3867a

Please sign in to comment.