Compare commits

..

1 commit

Author SHA1 Message Date
f2cea7cf73
feat: use download-artifact instead of manually downloading it
Some checks failed
/ check (treefmt) (push) Successful in 3s
/ report-size (push) Failing after 2s
/ report-download-check (push) Has been skipped
This should hopefully work on private repos too!
2025-05-14 22:48:58 +02:00

View file

@ -142,7 +142,7 @@ runs:
--arg head_branch "${BASE_BRANCH:-$(default_branch)}" \ --arg head_branch "${BASE_BRANCH:-$(default_branch)}" \
'[.workflow_runs[] | select(.name == $name and .head_branch == $head_branch)] | first | .run_number') '[.workflow_runs[] | select(.name == $name and .head_branch == $head_branch)] | first | .run_number')
echo "run-id=${{ github.run_id }}" >> "$GITHUB_OUTPUT" echo "run-id=$run_id" >> "$GITHUB_OUTPUT"
log Would try to download "$ARTIFACT_NAME" from "$run_id" log Would try to download "$ARTIFACT_NAME" from "$run_id"
- name: Download previous report - name: Download previous report
uses: https://git.salame.cl/actions/download-artifact@d8d0a99033603453ad2255e58720b460a0555e1e # v4 uses: https://git.salame.cl/actions/download-artifact@d8d0a99033603453ad2255e58720b460a0555e1e # v4
@ -151,7 +151,7 @@ runs:
with: with:
name: ${{ inputs.artifact-name }} name: ${{ inputs.artifact-name }}
github-token: ${{ inputs.github-token }} github-token: ${{ inputs.github-token }}
run-id: ${{ steps.previous-report.outputs.run-id }} # run-id: ${{ steps.previous-report.outputs.run-id }}
- name: Create report - name: Create report
if: inputs.comment-on-pr == 'true' || inputs.generate-artifact == 'true' if: inputs.comment-on-pr == 'true' || inputs.generate-artifact == 'true'
env: env: