Skip to content

Commit

Permalink
chore(release): enforce pattern of tag name
Browse files Browse the repository at this point in the history
[no-jira]
  • Loading branch information
chris-asl committed Jul 6, 2023
1 parent 01524bd commit c269904
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:
echo "Tag is not based on a merged commit in the main branch. Exiting."
exit 0
fi
- name: Check tag name pattern follows `vX.Y.Z`
run: |
if [[ ! "$GITHUB_REF" =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Tag name does not match the pattern 'vX.Y.Z'. Exiting."
exit 0
fi
- name: Setup Java
uses: actions/setup-java@v3
with:
Expand Down

0 comments on commit c269904

Please sign in to comment.