forked from coenjacobs/mozart
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update version number in bin Fix #90
- Loading branch information
1 parent
4023e9c
commit 3ad5c9d
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,19 @@ jobs: | |
- name: Install dependencies | ||
run: composer install --no-dev --prefer-dist --no-progress | ||
|
||
- name: "Edit `strauss/bin/strauss` to update the version number" | ||
env: | ||
CURRENT_RELEASE: ${{ github.event.release.tag_name }} | ||
run: | | ||
find bin -name 'strauss' -exec sed -i "s/}, '[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*');/}, '$CURRENT_RELEASE');/" {} + | ||
- name: Commit updated README.md | ||
uses: stefanzweifel/[email protected] | ||
with: | ||
branch: master | ||
file_pattern: "bin/strauss" | ||
commit_message: "🤖 Update version number in bin" | ||
|
||
- name: Create .phar | ||
run: | | ||
wget -O phar-composer.phar https://github.com/clue/phar-composer/releases/download/v1.4.0/phar-composer-1.4.0.phar | ||
|