From eebc0133acbb4d5c8fe60706193b1a8b3abf8b86 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Wed, 6 Mar 2024 10:30:14 +0100 Subject: [PATCH] Fix regression report-size-deltas after updating upload-artifact. For more information see https://github.com/arduino/report-size-deltas/blob/main/docs/FAQ.md#size-deltas-report-workflow-triggered-by-schedule-event . --- .github/workflows/compile-examples.yml | 3 ++- .github/workflows/report-size-deltas.yml | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index c52941ff..1c70863b 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -74,5 +74,6 @@ jobs: if: github.event_name == 'pull_request' uses: actions/upload-artifact@v4 with: - name: sketches-report-${{ matrix.board.artifact-name-suffix }} + if-no-files-found: error path: ${{ env.SKETCHES_REPORTS_PATH }} + name: sketches-report-${{ matrix.board.artifact-name-suffix }} diff --git a/.github/workflows/report-size-deltas.yml b/.github/workflows/report-size-deltas.yml index b47bebfa..193d06b1 100644 --- a/.github/workflows/report-size-deltas.yml +++ b/.github/workflows/report-size-deltas.yml @@ -10,5 +10,7 @@ jobs: steps: # See: https://github.com/arduino/report-size-deltas/README.md - - name: Comment size deltas reports to PRs - uses: arduino/report-size-deltas@main + uses: arduino/report-size-deltas@v1 + with: + # Regex matching the names of the workflow artifacts created by the "Compile Examples" workflow + sketches-reports-source: ^sketches-report-.+