File tree 2 files changed +6
-2
lines changed
2 files changed +6
-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
@@ -68,10 +68,14 @@ jobs:
68
68
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${{ github.event.inputs.snapshot_version }}
69
69
git add pom.xml kcbq-api/pom.xml kcbq-connector/pom.xml
70
70
git commit -m "Bump version to ${{ github.event.inputs.snapshot_version }}"
71
+ # Ugly workaround for https://github.com/peter-evans/create-pull-request/issues/2108
72
+ git checkout $(git rev-parse HEAD)
71
73
72
74
- name : Create Pull Request
73
75
uses : peter-evans/create-pull-request@v3
74
76
with :
77
+ # Ugly workaround for https://github.com/peter-evans/create-pull-request/issues/2108 (part two)
78
+ base : master
75
79
branch : release-${{ github.event.inputs.release_version }}
76
80
delete-branch : true
77
81
draft : true
You can’t perform that action at this time.
0 commit comments