Skip to content

Commit

Permalink
Validate tagname (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinothamar committed Nov 12, 2024
1 parent 363d9f7 commit 9ed0490
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ jobs:
|| 'prod'
}}
steps:
- name: Validate tag
run: |
echo "Validating that the tag is in the correct format"
echo "${{ github.event.release.tag_name }}" | grep -P '^v(\d+)\.(\d+)\.(\d+)(-(preview|rc)\d+$|$)'
- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand Down

0 comments on commit 9ed0490

Please sign in to comment.