From 23094d6ea2d7d37b551e725077d159e2336d4891 Mon Sep 17 00:00:00 2001 From: David Sondermann Date: Sun, 9 Mar 2025 19:38:01 +0000 Subject: [PATCH] Fix JUnit report branch detection --- merge-junit-reports/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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