Skip to content

Commit

Permalink
Permit alpha, beta, and RC releases
Browse files Browse the repository at this point in the history
  • Loading branch information
C0urante committed Mar 26, 2024
1 parent 2b87f11 commit 3a7c378
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
run: |
export commit_title=$(git log --pretty=format:%s -1 ${{ github.event.inputs.commit_hash }})
echo "Commit title: $commit_title"
if [[ $commit_title =~ ^Release\ version\ [0-9]*\.[0-9]*\.[0-9]*$ ]]; then
if [[ $commit_title =~ ^Release\ version\ [0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta|rc[0-9]+))?$ ]]; then
echo "Valid commit title"
else
echo "Invalid commit title"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_pr_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Check versions
run: |
echo "Checking release version..."
if echo ${{ github.event.inputs.release_version }} | grep --invert-match '^[0-9]\+\.[0-9]\+\.[0-9]\+$' > /dev/null; then
if echo ${{ github.event.inputs.release_version }} | '^[0-9]\+\.[0-9]\+\.[0-9]\+\(-\(alpha\|beta\|rc[0-9]\+\)\)\?$' > /dev/null; then
echo "Release version is invalid"
exit 1
fi
Expand Down

0 comments on commit 3a7c378

Please sign in to comment.