Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 9357d94

Browse files
CI: update regex for setting image version (for releases)
We now use x.y.z format for all releases and the regex did not work well with 1.13.0 release.
1 parent 7bbe1d1 commit 9357d94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/gha.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Get release version
4040
if: github.event_name == 'release'
4141
id: get_release_version
42-
run: echo ::set-output name=VERSION::$(echo ${{ github.event.release.tag_name }} | grep -E "^[0-9]+.[0-9]+(-rc[0-9]+)?$" | cut -f 1,2 -d . | cut -f 1 -d -)
42+
run: echo ::set-output name=VERSION::$(echo ${{ github.event.release.tag_name }} | awk -F '[.-]' '/^[0-9]+.[0-9]+[.0-9]*(-rc[0-9]+)?$/ {print $1 "." $2}')
4343

4444
- name: Set image version and force image action for release
4545
if: github.event_name == 'release' && steps.get_release_version.outputs.VERSION != ''

0 commit comments

Comments
 (0)