Skip to content

Commit

Permalink
Adding leading v to tag in regex
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
  • Loading branch information
jpodivin committed Jun 27, 2024
1 parent 98280bd commit adf0cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
# Regex by https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
- name: Check semver
run: |
echo "${{ github.ref }}" | grep -q -P "^refs/tags/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$"
echo "${{ github.ref }}" | grep -q -P "^refs/tags/v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$"
|| exit 1
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python -
Expand Down

0 comments on commit adf0cc6

Please sign in to comment.