From 94b8d9b78b6e5c1aaa0e1421d7bd9a134328305d Mon Sep 17 00:00:00 2001 From: Olivier Zalmanski <88216225+OlivierZal@users.noreply.github.com> Date: Wed, 31 Jul 2024 15:51:25 +0200 Subject: [PATCH] improve --- .github/workflows/update-version.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index a1db271f..9462529d 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -30,10 +30,11 @@ jobs: changelog: ${{ inputs.changelog }} - name: Commit & push run: | - npm version ${{ steps.update_app_version.outputs.version }} --no-git-tag-version + VERSION=${{ steps.update_app_version.outputs.version }} + npm version $VERSION --no-git-tag-version --allow-same-version git config --local user.email "sysadmin+githubactions@athom.com" git config --local user.name "Homey Github Actions Bot" git add -A - git commit -m "Update app version to v${{ steps.update_app_version.outputs.version }}" - git tag "v${{ steps.update_app_version.outputs.version }}" + git commit -m "Update app version to v$VERSION" + git tag "v$VERSION" git push origin HEAD --tags