Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Apr 24, 2024
1 parent 5cc158a commit 018a64f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/updateversionfromchangelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ jobs:
ref: master

- name: "Edit `strauss/bin/strauss` to update the version number"
env:
CURRENT_RELEASE: cat CHANGELOG.md | grep --max-count=1 -o '##.*' | awk '{print $2}'
run: |
CURRENT_RELEASE=$(cat CHANGELOG.md | grep --max-count=1 -o '##.*' | awk '{print $2}')
find bin -name 'strauss' -exec sed -i "s/}, '[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*');/}, '$CURRENT_RELEASE');/" {} +
- name: Commit updated README.md
Expand Down
2 changes: 1 addition & 1 deletion bin/strauss
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ call_user_func(function ($version) {

$app = new BrianHenryIE\Strauss\Console\Application($version);
$app->run();
}, 'cat CHANGELOG.md | grep --max-count=1 -o '##.*' | awk '{print $2}'');
}, '0.17.0');

0 comments on commit 018a64f

Please sign in to comment.