Skip to content

Commit

Permalink
fix the bash regex to match release versions
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
  • Loading branch information
dirkhh committed Oct 2, 2023
1 parent d085d64 commit 52c1d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ jobs:
export tag=""
export is_release=0
if [ "${{ github.ref_type }}" = "tag" ] ; then tag="${{ github.ref_name }}" ; else tag="${{ github.sha }}" ; fi
if [[ tag =~ "^v[0-9]+\.[0-9]+\.[0-9]+$" ]] ; then is_release=1 ; fi
if [[ "$tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] ; then is_release=1 ; fi
export better_tag=$(echo $tag | sed -r 's/^(.{8}).{32}$/g-\1/')
echo "tag=${better_tag}" >> $GITHUB_OUTPUT
echo "is_release=${is_release}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 52c1d41

Please sign in to comment.