Skip to content

Commit 67d335b

Browse files
Update .github/workflows/RELEASE.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3093de9 commit 67d335b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/RELEASE.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)