Skip to content

Merge branch 'use-files-objects-with-properties' #1

Merge branch 'use-files-objects-with-properties'

Merge branch 'use-files-objects-with-properties' #1

# 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"