Compare commits

..

1 commit

Author SHA1 Message Date
d684e1ea3a
feat: use download-artifact instead of manually downloading it
Some checks failed
/ check (treefmt) (push) Successful in 2s
/ check-renovaterc (push) Successful in 2s
/ report-size (push) Failing after 4s
This should hopefully work on private repos too!
2025-05-13 21:21:11 +02:00
2 changed files with 9 additions and 15 deletions

View file

@ -34,23 +34,9 @@ jobs:
# Create a comment on the associated PR
comment-on-pr: ${{ github.ref_name != 'main' }}
# Generate artifacts on main (to speed up comparisons)
# generate-artifact: ${{ github.ref_name == 'main' }}
# For testing always generate artifacts
generate-artifact: 'true'
generate-artifact: ${{ github.ref_name == 'main' }}
github-token: ${{ secrets.ARTIFACT_TOKEN }}
# Generate comparisons to main
do-comparison: 'true'
# This job's name (so we can find the artifacts)
job-name: report-size
report-download-check:
runs-on: nixos
needs: report-size
steps:
- 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 }}

View file

@ -201,3 +201,11 @@ 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 }}