From bfa30e4f5e824dbdd3a58889e08738c7b7a579a8 Mon Sep 17 00:00:00 2001 From: David Sondermann Date: Thu, 1 May 2025 08:49:58 +0200 Subject: [PATCH] Check if JUnit report SHA artifact exists before download attempt to prevent error annotation --- checkout-junit-reports/action.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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