Skip to content

Commit a2c4aed

Browse files
committed
ifxi
1 parent 2e96ea2 commit a2c4aed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/sync-infix.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ jobs:
2828
else
2929
git checkout -b latest
3030
fi
31+
else
32+
if [ -n "$(git branch -r | grep latest)" ]; then
33+
git reset --hard origin/latest
34+
fi
3135
fi
32-
git reset --hard origin/latest
3336
if [[ -n "$(git diff --exit-code origin/main)" ]]; then
3437
echo "New commits exist on main"
3538
git merge origin/main

0 commit comments

Comments
 (0)