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