Skip to content

Commit

Permalink
[ci] accept multiple digits in version parsed from tag for published …
Browse files Browse the repository at this point in the history
…releases
  • Loading branch information
dgrisham committed Feb 28, 2022
1 parent bf015a2 commit b1a0a51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
run: |
if [[ "${{ github.event_name }}" == 'release' && "${{ github.event.action }}" == 'published' ]]; then
tag="$(echo ${GITHUB_REF#refs/tags/})"
[[ "$tag" =~ ^v[0-9]\.[0-9]\.[0-9]-beta$ ]] || { echo "Unsupported tag format '$tag', skipping release and deploy jobs" >&2 ; exit 1 ; }
[[ "$tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+-beta$ ]] || { echo "Unsupported tag format '$tag', skipping release and deploy jobs" >&2 ; exit 1 ; }
fi
exit 0
Expand Down

0 comments on commit b1a0a51

Please sign in to comment.