mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 15:49:25 +01:00
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:
parent
ee0561e187
commit
7eaa8cf148
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user