From 2522cca0409774c8704058c6e257628493005fac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar=20Rubio?= Date: Tue, 4 Jun 2024 16:53:27 +0200 Subject: [PATCH] Fix version update regex on CI --- .github/workflows/publish.yml | 11 ++++------- simple_icons_blender.py | 2 +- simple_icons_blender.template | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a670388..9560900 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/simple_icons_blender.py b/simple_icons_blender.py index f145140..cb57a68 100644 --- a/simple_icons_blender.py +++ b/simple_icons_blender.py @@ -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", } diff --git a/simple_icons_blender.template b/simple_icons_blender.template index 0a48eda..c1bbecd 100644 --- a/simple_icons_blender.template +++ b/simple_icons_blender.template @@ -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", }