diff --git a/action.yml b/action.yml index 13043d0..38ce031 100644 --- a/action.yml +++ b/action.yml @@ -144,14 +144,14 @@ runs: echo "run-id=$run_id" >> "$GITHUB_OUTPUT" log Would try to download "$ARTIFACT_NAME" from "$run_id" - # - name: Download previous report - # uses: https://git.salame.cl/actions/download-artifact@d8d0a99033603453ad2255e58720b460a0555e1e # v4 - # # Ensure the previous step succeeded - # if: steps.previous-report.outcome == 'success' - # with: - # name: ${{ inputs.artifact-name }} - # github-token: ${{ inputs.github-token }} - # run-id: ${{ steps.previous-report.outputs.run-id }} + - name: Download previous report + uses: https://git.salame.cl/actions/download-artifact@d8d0a99033603453ad2255e58720b460a0555e1e # v4 + # Ensure the previous step succeeded + if: steps.previous-report.outcome == 'success' + with: + name: ${{ inputs.artifact-name }} + github-token: ${{ inputs.github-token }} + run-id: ${{ steps.previous-report.outputs.run-id }} - name: Create report if: inputs.comment-on-pr == 'true' || inputs.generate-artifact == 'true' env: @@ -201,11 +201,3 @@ runs: with: path: report.json name: ${{ inputs.artifact-name }} - - name: Download previous report - uses: https://git.salame.cl/actions/download-artifact@d8d0a99033603453ad2255e58720b460a0555e1e # v4 - # Ensure the previous step succeeded - # if: steps.previous-report.outcome == 'success' - with: - name: ${{ inputs.artifact-name }} - # github-token: ${{ inputs.github-token }} - # run-id: ${{ steps.previous-report.outputs.run-id }}