From afec455c186a0b3ebd4ed76cc5237786f163f8f8 Mon Sep 17 00:00:00 2001 From: tomoron Date: Fri, 30 Jan 2026 23:54:40 +0100 Subject: [PATCH] maybe incompatible syntax in the last action --- action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 572cb2d..6d80291 100644 --- a/action.yml +++ b/action.yml @@ -39,10 +39,10 @@ runs: - name: push to latest branch run: | - if ! git ls-remote --exit-code --heads origin latest; then - git checkout -b latest - git push origin latest - else + if git ls-remote --exit-code --heads origin latest; then git switch latest git merge latest + else + git checkout -b latest + git push origin latest fi