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