@@ -177,11 +177,11 @@ jobs:
177
177
jq -r '.workflow_runs[0].id')
178
178
179
179
ARTIFACT_IDS=$(curl \
180
- -H "Accept: application/vnd.github+json" \
181
- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
182
- -H "X-GitHub-Api-Version: 2022-11-28" \
183
- https://api.github.com/repos/${{ github.repository }}/actions/runs/"${LAST_SUCCESSFUL_RUN_ID}"/artifacts | \
184
- jq -r '.artifacts | sort_by(.created_at) | .[] | select(.name | startswith("testresults-")) | .id')
180
+ -H "Accept: application/vnd.github+json" \
181
+ -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
182
+ -H "X-GitHub-Api-Version: 2022-11-28" \
183
+ https://api.github.com/repos/${{ github.repository }}/actions/runs/"${LAST_SUCCESSFUL_RUN_ID}"/artifacts | \
184
+ jq -r '.artifacts | sort_by(.created_at) | .[] | select(.name | startswith("testresults-")) | .id')
185
185
186
186
echo "ARTIFACT_IDS=$ARTIFACT_IDS" >> $GITHUB_ENV
187
187
@@ -205,17 +205,17 @@ jobs:
205
205
echo "test_results directory does not exist"
206
206
exit 1
207
207
fi
208
- if ! ls test_results/surefire-reports/ *xml 1> /dev/null 2>&1; then
208
+ if ! ls test_results/*xml 1> /dev/null 2>&1; then
209
209
echo "No xml files found in test_results directory"
210
210
exit 1
211
211
fi
212
- if ! ls -l test_results/surefire-reports/ *xml 1> /dev/null 2>&1; then
212
+ if ! ls -l test_results/*xml 1> /dev/null 2>&1; then
213
213
echo "Not all xml files in test_results directory are readable"
214
214
exit 1
215
215
fi
216
216
217
217
echo "All xml files in test_results directory are readable"
218
- ls -l test_results/surefire-reports/ *xml
218
+ ls -l test_results/*xml
219
219
220
220
- name : Setup tmate session
221
221
uses : mxschmitt/action-tmate@v3.19
0 commit comments