diff --git a/checkout-junit-reports/action.yml b/checkout-junit-reports/action.yml index 850e3a9..70e5a33 100644 --- a/checkout-junit-reports/action.yml +++ b/checkout-junit-reports/action.yml @@ -36,12 +36,18 @@ inputs: runs: using: composite steps: + - name: Check if JUnit reports SHA artifact exists + id: junit-reports-sha-check + uses: lit-Protocol/artifact-exists-action@ff41b0e92208918c585721cbf3e866dfddaf7879 # v0 + with: + name: ${{ inputs.artifact-name }} + - name: Download JUnit reports SHA artifact + if: ${{ steps.junit-reports-sha-check.outputs.exists == 'true' }} uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 with: name: ${{ inputs.artifact-name }} path: ${{ inputs.artifact-path }} - continue-on-error: true - name: Check JUnit reports SHA id: junit-reports-sha