Skip to content

Commit 2e7ee2d

Browse files
fixup! Separate reporting vs build status steps
1 parent 4bf3d90 commit 2e7ee2d

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/actions/archive-artifacts/action.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,17 @@ runs:
4747
# Download previous JUnit reports
4848
mkdir -p /tmp/junit-previous
4949
for attempt in $(seq 1 $(( ${{ github.run_attempt }} - 1 )) ); do
50-
curl -f -s -u "${{ inputs.user }}:${{ inputs.password }}" \
51-
"${{ steps.setup-artifacts.outputs.link }}/data/${{ github.job }}.${attempt}/junit-merged.xml" \
52-
-o "/tmp/junit-previous/${{ github.job }}.${attempt}.xml" \
53-
|| echo "::warning::${{ github.job }}.${attempt} reports not available (skipped)"
50+
FILES=$(curl -f -s -u "${{ inputs.user }}:${{ inputs.password }}" \
51+
"${{ steps.setup-artifacts.outputs.link }}/data/${{ github.job }}.${attempt}/reports/?format=txt" \
52+
|| true)
53+
54+
while IFS= read -r filename; do
55+
[ -z "$filename" ] && continue
56+
curl -f -s -u "${{ inputs.user }}:${{ inputs.password }}" \
57+
"${{ steps.setup-artifacts.outputs.link }}/data/${{ github.job }}.${attempt}/reports/${filename}" \
58+
-o "/tmp/junit-previous/${filename%.*}.${attempt}.${filename##*.}" \
59+
|| echo "::warning::Failed to download ${{ github.job }}.${attempt} report: ${filename}"
60+
done <<< "$FILES"
5461
done
5562
5663
- name: Merge JUnit reports

0 commit comments

Comments
 (0)