Skip to content

Commit 0f60519

Browse files
committed
Fail "Compile Examples" workflow run if report file missing
The `arduino/compile-sketches` action is configured to produce a file containing information about the compilations. This file is uploaded to a workflow artifact via the `actions/upload-artifact` action and later consumed by the `arduino/report-size-deltas` action. By default the `actions/upload-artifact` action step will pass even if the file specified for upload is not found. In this case where the file will always be present if the workflow is functioning correctly, that behavior could mask a serious problem with the workflow. It is better to configure the `actions/upload-artifact` action to fail the workflow run if the file is not found.
1 parent 77ce72a commit 0f60519

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/compile-examples.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,5 @@ jobs:
7474
uses: actions/upload-artifact@v3
7575
with:
7676
name: ${{ env.SKETCHES_REPORTS_PATH }}
77+
if-no-files-found: error
7778
path: ${{ env.SKETCHES_REPORTS_PATH }}

0 commit comments

Comments
 (0)