Skip to content

Commit 093fedf

Browse files
authored
Merge pull request #14 from tsgcpp/feature/fix-message-in-delete-branch-ci
fix: Fix a message of branch deletion in pull-localization.yml
2 parents 12e8a06 + ce726ac commit 093fedf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pull-localization.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ jobs:
7474
REMOTE_SHA=$(git ls-remote --heads origin ${{ env.HEAD_BRANCH }})
7575
if [ -n "${REMOTE_SHA}" ]
7676
then
77-
git push origin :${{ env.HEAD_BRANCH }}
78-
echo "::notice::The remote branch (ref_name: ${{ env.HEAD_BRANCH }}, sha: ${REMOTE_SHA})"
77+
git push origin --delete ${{ env.HEAD_BRANCH }}
78+
echo "::notice::A already-existing remote branch (ref_name: ${{ env.HEAD_BRANCH }}, sha: ${REMOTE_SHA}) was deleted."
7979
fi
8080
8181
git push origin ${{ env.HEAD_BRANCH }}

0 commit comments

Comments
 (0)