@@ -88,16 +88,15 @@ jobs:
88
88
id : summary
89
89
shell : bash
90
90
run : |
91
- SUMMARY=$(find . -maxdepth 3 -name '*summary.json' -print)
91
+ SUMMARY=$(find . -maxdepth 1 -name '*summary.json' -print)
92
92
if [[ -n "$SUMMARY" ]]; then
93
- echo "summary=$SUMMARY" >> "$GITHUB_OUTPUT"
94
- echo "Files matching the pattern test-runner-summary*.json found in the directory"
95
- summary_dir=$(dirname "$SUMMARY")
96
- jq -s '[.[] | .[]]' $summary_dir/*summary.json > combined.json
93
+ echo "summary=true" >> $GITHUB_OUTPUT
94
+ echo "Files matching the pattern ./*summary.json"
95
+ jq -s '[.[] | .[]]' ./*summary.json > combined.json
97
96
echo "Files found in the directory"
98
97
else
99
- echo "summary=false" >> " $GITHUB_OUTPUT"
100
- echo "No files matching the pattern test-runner-summary* .json found in the directory "
98
+ echo "summary=false" >> $GITHUB_OUTPUT
99
+ echo "No files matching the pattern ./*summary .json"
101
100
fi
102
101
- name : Generate TXT file
103
102
if : ${{ steps.summary.outputs.summary != 'false' }}
@@ -118,7 +117,7 @@ jobs:
118
117
fi
119
118
} >> output.txt
120
119
- name : PR-comment
121
- if : ${{ steps.summary.outputs.summary == 'true ' }}
120
+ if : ${{ steps.summary.outputs.summary != 'false ' }}
122
121
uses : marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2.9.0
123
122
with :
124
123
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments