Skip to content

Commit 116593d

Browse files
pftgclaude
andcommitted
fix: rename HTML report file for readable artifact name
archive: false uses the filename as the artifact name. Rename from index.html to {name}-screenshot-report.html so it shows as a descriptive name in the Actions UI instead of generic "index.html". Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7f09ce9 commit 116593d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/actions/upload-screenshots/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,18 @@ runs:
4040
echo "exists=false" >> "$GITHUB_OUTPUT"
4141
fi
4242
43+
- name: Prepare HTML report for inline preview
44+
if: steps.check-report.outputs.exists == 'true'
45+
shell: bash
46+
run: cp "${{ inputs.report-path }}/index.html" "${{ inputs.report-path }}/${{ inputs.name }}-screenshot-report.html"
47+
4348
- name: Upload HTML report (inline preview)
4449
if: steps.check-report.outputs.exists == 'true'
4550
uses: actions/upload-artifact@v7
4651
with:
4752
name: ${{ inputs.name }}-report
4853
retention-days: ${{ inputs.retention-days }}
49-
path: ${{ inputs.report-path }}/index.html
54+
path: ${{ inputs.report-path }}/${{ inputs.name }}-screenshot-report.html
5055
archive: false
5156

5257
- name: Upload HTML report with images (full download)

0 commit comments

Comments
 (0)