Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
Gabiermi committed Feb 27, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 593cbf0 commit c5c91f5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
@@ -23,13 +23,11 @@ jobs:
run: |
sed -i "s/Stable tag: [0-9.]\+/Stable tag: ${{ github.event.inputs.version }}/g" omnisend/readme.txt
changelog_line=$(grep -n "== Changelog ==" omnisend/readme.txt | cut -d: -f1)
sed -i "${changelog_line}a \\= ${github.event.inputs.version} =" omnisend/readme.txt
sed -i "${changelog_line}a \\* ${github.event.inputs.changelog}" omnisend/readme.txt
sed '/== Changelog ==/a = ${github.event.inputs.version} =" omnisend/readme.txt
sed '/= ${github.event.inputs.version} =/a * ${github.event.inputs.changelog}" omnisend/readme.txt
sed -i "s/Version: [0-9.]\+/Version: ${{ github.event.inputs.version }}/g" omnisend/class-omnisend-core-bootstrap.php
- name: Create new branch
run: |
git checkout -b update-plugin-${{ github.event.inputs.version }}

0 comments on commit c5c91f5

Please sign in to comment.