maybe incompatible syntax in the last action
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user