File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
.github/actions/archive-artifacts Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments