Skip to content

Commit b40fe77

Browse files
authored
fix: branch-out-upload logic (#1326)
* fix: branch-out-upload shell if * add changeset
1 parent 610899f commit b40fe77

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.changeset/proud-windows-camp.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"branch-out-upload": patch
3+
---
4+
5+
fix: bad exit on branch-out-upload

actions/branch-out-upload/action.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,12 @@ runs:
6969
echo "Go test suite detected, will run JUnit Enhancer."
7070
echo "run-enhancer=true" | tee -a "$GITHUB_OUTPUT"
7171
echo "junit-path-to-upload=./junit-enhanced.xml" | tee -a "$GITHUB_OUTPUT"
72-
exit 1
72+
else
73+
echo "Non-Go test suite detected, skipping JUnit Enhancer."
74+
echo "run-enhancer=false" | tee -a "$GITHUB_OUTPUT"
75+
echo "junit-path-to-upload=$JUNIT_FILE_PATH" | tee -a "$GITHUB_OUTPUT"
7376
fi
7477
75-
echo "Non-Go test suite detected, skipping JUnit Enhancer."
76-
echo "run-enhancer=false" | tee -a "$GITHUB_OUTPUT"
77-
echo "junit-path-to-upload=$JUNIT_FILE_PATH" | tee -a "$GITHUB_OUTPUT"
78-
7978
- name: Install JUnit Enhancer (go)
8079
if: ${{ steps.inputs-ext.outputs.run-enhancer == 'true' }}
8180
shell: bash

0 commit comments

Comments
 (0)