Skip to content

Commit

Permalink
Fix version update regex on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Jun 4, 2024
1 parent 7810812 commit 2522cca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,10 @@ jobs:
# Update version in README
sed -i 's/${{ steps.get-releases.outputs.lib }}/${{ steps.get-releases.outputs.si }}/g' README.md
# Update version in addon metadata
v_major="$(echo ${{ steps.get-releases.outputs.lib }} | cut -d'.' -f1)"
v_minor="$(echo ${{ steps.get-releases.outputs.lib }} | cut -d'.' -f2)"
v_patch="$(echo ${{ steps.get-releases.outputs.lib }} | cut -d'.' -f3)"
up_v_major="$(echo ${{ steps.get-releases.outputs.si }} | cut -d'.' -f1)"
up_v_minor="$(echo ${{ steps.get-releases.outputs.si }} | cut -d'.' -f2)"
up_v_patch="$(echo ${{ steps.get-releases.outputs.si }} | cut -d'.' -f3)"
sed -i "s/'version': ($v_major, $v_minor, $v_patch),/'version': ($up_v_major, $up_v_minor, $up_v_patch),/" simple_icons_blender.template
v_major="$(echo ${{ steps.get-releases.outputs.si }} | cut -d'.' -f1)"
v_minor="$(echo ${{ steps.get-releases.outputs.si }} | cut -d'.' -f2)"
v_patch="$(echo ${{ steps.get-releases.outputs.si }} | cut -d'.' -f3)"
sed -i -E "s/\"version\"\: [(][0-9]+, [0-9]+, [0-9]+[)],/\"version\"\: ($v_major, $v_minor, $v_patch),/" simple_icons_blender.template
- name: Blender cache setup
if: steps.get-releases.outputs.lib != steps.get-releases.outputs.si
uses: actions/cache@v4
Expand Down
2 changes: 1 addition & 1 deletion simple_icons_blender.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"author": "mondeja",
"license": "BSD-3-Clause",
"category": "Add Curve",
"version": (9, 8, 0),
"version": (12, 1, 0),
"blender": (2, 93, 0),
"support": "COMMUNITY",
}
Expand Down
2 changes: 1 addition & 1 deletion simple_icons_blender.template
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bl_info = {
"author": "mondeja",
"license": "BSD-3-Clause",
"category": "Add Curve",
"version": (9, 8, 0),
"version": (12, 1, 0),
"blender": (2, 93, 0),
"support": "COMMUNITY",
}
Expand Down

0 comments on commit 2522cca

Please sign in to comment.