Skip to content

Commit

Permalink
Update version from changelog #90
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Apr 24, 2024
1 parent 8cacf47 commit 1874b3b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/updateversionfromchangelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# When a new version number is added to the changelog, update the bin.

name: Update version from changelog

on:
push:
branches:
- master
paths:
- 'CHANGELOG.md'


jobs:
update-version:
runs-on: ubuntu-latest
name: Create Strauss phar on new release
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
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: |
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"
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# 0.14.0 07-March-2023
# Change Log

## 0.18.0



## 0.14.0 07-March-2023

* Merge `in-situ` branch (bugs expected)
* Add: `delete_vendor_packages` option (`delete_vendor_files` is maybe deprecated now)
Expand Down

0 comments on commit 1874b3b

Please sign in to comment.