File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,18 +32,18 @@ jobs:
32
32
run : |
33
33
git config --global user.name 'Spring Builds'
34
34
git config --global user.email '[email protected] '
35
- cherryPickToken=" ${{ inputs.autoCherryPickToken }}"
36
- commitMessage=" ${{ github.event.head_commit.message }}"
35
+ cherryPickToken=' ${{ inputs.autoCherryPickToken }}'
36
+ commitMessage=' ${{ github.event.head_commit.message }}'
37
37
branches=$(echo '$commitMessage' | grep '$cherryPickToken' | grep -o1 -E "([0-9]+\.[0-9]+\.x)")
38
38
branchCommitMessage=$(echo '$commitMessage' | grep -v '$cherryPickToken')
39
39
for branch in $branches
40
40
do
41
41
git checkout $branch
42
42
if git cherry-pick ${{ github.sha }}
43
43
then
44
- echo "::notice title=Commit cherry-picked::${{ github.sha }} to branch `$branch`"
44
+ echo "::notice title=Commit cherry-picked::` ${{ github.sha }}` to branch `$branch`"
45
45
else
46
- echo "::error title=Cannot cherry-pick::${{ github.sha }} to branch `$branch`. Manual procedure required"
46
+ echo "::error title=Cannot cherry-pick::` ${{ github.sha }}` to branch `$branch`. Manual procedure required"
47
47
exit 1
48
48
fi
49
49
git commit –amend -m "$branchCommitMessage"
You can’t perform that action at this time.
0 commit comments