Skip to content

Commit 0fbd0df

Browse files
committed
avoid builtin
1 parent a56a227 commit 0fbd0df

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/actions/test-report/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ runs:
2525
REPORT_DIR=$(dirname "${{ inputs.report-path }}")
2626
REPORT_PATTERN=$(basename "${{ inputs.report-path }}")
2727
28-
# Use compgen to check if the glob expands to any files
29-
if compgen -G "${{ inputs.report-path }}" > /dev/null 2>&1; then
28+
if ls ${{ inputs.report-path }} 1>/dev/null 2>&1; then
3029
TESTS_RUN=$(grep -h "tests=" ${{ inputs.report-path }} 2>/dev/null | sed 's/.*tests="\([0-9]*\)".*/\1/' | awk '{s+=$1} END {print s}')
3130
FAILURES=$(grep -h "failures=" ${{ inputs.report-path }} 2>/dev/null | sed 's/.*failures="\([0-9]*\)".*/\1/' | awk '{s+=$1} END {print s}')
3231
ERRORS=$(grep -h "errors=" ${{ inputs.report-path }} 2>/dev/null | sed 's/.*errors="\([0-9]*\)".*/\1/' | awk '{s+=$1} END {print s}')

0 commit comments

Comments
 (0)