fix: Correct release workflow trigger and version extraction

This commit addresses two issues in the release workflow:

1.  The tag trigger has been reverted to only accept tags matching the `v*.*.*` pattern, as requested by the user.
2.  The `grep` command used to extract the version number from `version.json` has been made more robust to prevent errors during the workflow run.
This commit is contained in:
google-labs-jules[bot] 2025-08-15 14:25:13 +00:00
parent ee0561e187
commit 7eaa8cf148

View File

@ -4,7 +4,6 @@ on:
push:
tags:
- 'v*.*.*'
- '*.*.*'
jobs:
release:
@ -50,7 +49,7 @@ jobs:
- name: Get version
id: get_version
run: |
VERSION=$(grep -o '"version": "[^"]*"' version.json | grep -o '[^"]*$')
VERSION=$(grep -oP '(?<="version": ")[^"]*' version.json)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Build release package