File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -152,9 +152,9 @@ jobs:
152152 - name : Clean up release branch
153153 run : |
154154 # Check if the release branch exists before attempting to delete it
155- if git ls-remote --exit-code origin ${{ github.event.pull_request.head.ref }}; then
156- echo "Deleting branch ${{ github.event.pull_request.head.ref }}..."
157- git push origin --delete ${{ github.event.pull_request.head.ref }}
155+ if git ls-remote --exit-code origin " ${{ github.event.pull_request.head.ref }}" ; then
156+ echo "Deleting branch \" ${{ github.event.pull_request.head.ref }}\" ..."
157+ git push origin --delete " ${{ github.event.pull_request.head.ref }}"
158158 else
159159 echo "Branch ${{ github.event.pull_request.head.ref }} does not exist. Skipping deletion."
160160 fi
You can’t perform that action at this time.
0 commit comments