File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 49
49
run : |
50
50
export commit_title=$(git log --pretty=format:%s -1 ${{ github.event.inputs.commit_hash }})
51
51
echo "Commit title: $commit_title"
52
- if [[ $commit_title =~ ^Release\ version\ [0-9]* \.[0-9]* \.[0-9]* $ ]]; then
52
+ if [[ $commit_title =~ ^Release\ version\ [0-9]+ \.[0-9]+ \.[0-9]+(-(alpha|beta|rc[0-9]+))? $ ]]; then
53
53
echo "Valid commit title"
54
54
else
55
55
echo "Invalid commit title"
Original file line number Diff line number Diff line change 41
41
- name : Check versions
42
42
run : |
43
43
echo "Checking release version..."
44
- if echo ${{ github.event.inputs.release_version }} | grep --invert-match '^[0-9]\+\.[0-9]\+\.[0-9]\+$' > /dev/null; then
44
+ if echo ${{ github.event.inputs.release_version }} | '^[0-9]\+\.[0-9]\+\.[0-9]\+\(-\(alpha\|beta\|rc[0-9]\+\)\)\? $' > /dev/null; then
45
45
echo "Release version is invalid"
46
46
exit 1
47
47
fi
73
73
uses : peter-evans/create-pull-request@v3
74
74
with :
75
75
branch : release-${{ github.event.inputs.release_version }}
76
+ # Workaround for https://github.com/peter-evans/create-pull-request/issues/2108
77
+ branch-suffix : short-commit-hash
76
78
delete-branch : true
77
79
draft : true
78
80
title : Release version ${{ github.event.inputs.release_version }}
You can’t perform that action at this time.
0 commit comments