Skip to content

Commit 7d7aecd

Browse files
committed
More spring-cherry-pick.yml fixes
1 parent bb87f33 commit 7d7aecd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/spring-cherry-pick.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ jobs:
3232
run: |
3333
git config --global user.name 'Spring Builds'
3434
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 }}'
3737
branches=$(echo '$commitMessage' | grep '$cherryPickToken' | grep -o1 -E "([0-9]+\.[0-9]+\.x)")
3838
branchCommitMessage=$(echo '$commitMessage' | grep -v '$cherryPickToken')
3939
for branch in $branches
4040
do
4141
git checkout $branch
4242
if git cherry-pick ${{ github.sha }}
4343
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`"
4545
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"
4747
exit 1
4848
fi
4949
git commit –amend -m "$branchCommitMessage"

0 commit comments

Comments
 (0)