diff --git a/merge-junit-reports/action.yml b/merge-junit-reports/action.yml index 50abdfc..d42e6a1 100644 --- a/merge-junit-reports/action.yml +++ b/merge-junit-reports/action.yml @@ -44,7 +44,7 @@ runs: shell: bash working-directory: junit-reports run: | - if git show-ref --verify --quiet refs/remotes/origin/${{ inputs.git-branch }}; then + if git ls-remote --exit-code --heads origin ${{ inputs.git-branch }}; then echo "Switching to branch ${{ inputs.git-branch }}" git switch ${{ inputs.git-branch }} else