Skip to content

Commit

Permalink
Check version number before commencing release process
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed Jun 21, 2024
1 parent 3164ab4 commit 3424d14
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ jobs:
contents: write

steps:
- name: "Check version number format"
run: |
if ! [[ "${{ inputs.version }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+((alpha|beta|RC)[0-9]+)?$ ]]; then
echo '❌ Version ${{ inputs.version }} does not match expected format' >> $GITHUB_STEP_SUMMARY
exit 1
fi
- name: "Create release output"
run: echo '🎬 Release process for version ${{ inputs.version }} started by @${{ github.triggering_actor }}' >> $GITHUB_STEP_SUMMARY

Expand Down

0 comments on commit 3424d14

Please sign in to comment.