Skip to content

Commit 888b4ce

Browse files
committed
Fix branch deletion being not detected
1 parent 2e7b1b6 commit 888b4ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/update-from-template.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ jobs:
210210
211211
echo "Checking if update-branch-merged exists"
212212
git fetch
213-
if [[ $(git rev-parse origin/${{ env.UPDATE_BRANCH_MERGED }}) ]]; then
213+
if [[ $(git ls-remote --heads origin refs/heads/${{ env.UPDATE_BRANCH_MERGED }}) ]]; then
214214
echo "Branch still exists; Continuing..."
215215
else
216216
echo "Branch origin/${{ env.UPDATE_BRANCH_MERGED }} is missing"

0 commit comments

Comments
 (0)