Skip to content

Commit a520fab

Browse files
committed
Check if JUnit report SHA artifact exists before download attempt to prevent error annotation
1 parent 1b4f7bc commit a520fab

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

checkout-junit-reports/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,18 @@ inputs:
3636
runs:
3737
using: composite
3838
steps:
39+
- name: Check if JUnit reports SHA artifact exists
40+
id: junit-reports-sha-check
41+
uses: lit-Protocol/artifact-exists-action@ff41b0e92208918c585721cbf3e866dfddaf7879 # v0
42+
with:
43+
name: ${{ inputs.artifact-name }}
44+
3945
- name: Download JUnit reports SHA artifact
46+
if: ${{ steps.junit-reports-sha-check.outputs.exists == 'true' }}
4047
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
4148
with:
4249
name: ${{ inputs.artifact-name }}
4350
path: ${{ inputs.artifact-path }}
44-
continue-on-error: true
4551

4652
- name: Check JUnit reports SHA
4753
id: junit-reports-sha

0 commit comments

Comments
 (0)