Skip to content

Commit 90c1dca

Browse files
committed
Fix JUnit report branch detection
1 parent 26065da commit 90c1dca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

merge-junit-reports/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ runs:
4444
shell: bash
4545
working-directory: junit-reports
4646
run: |
47-
if git show-ref --verify --quiet refs/remotes/origin/${{ inputs.git-branch }}; then
47+
if git ls-remote --exit-code --heads origin ${{ inputs.git-branch }}; then
4848
echo "Switching to branch ${{ inputs.git-branch }}"
4949
git switch ${{ inputs.git-branch }}
5050
else

0 commit comments

Comments
 (0)