From 7b33b5b58286c17fb556f758d0a5aaead0ebd211 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sat, 7 Jun 2025 13:17:06 +0100 Subject: [PATCH] Handle missing benchmark artifact by creating an HTML placeholder instead of failing the workflow --- .github/workflows/docs-and-testcov.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs-and-testcov.yml b/.github/workflows/docs-and-testcov.yml index c946b9b..68bd58c 100644 --- a/.github/workflows/docs-and-testcov.yml +++ b/.github/workflows/docs-and-testcov.yml @@ -112,14 +112,14 @@ jobs: if [ -z "$artifact_url" ]; then echo "No benchmark artifact found!" - exit 1 + mkdir -p benchmark-report + echo 'No Benchmarks

No benchmarks available

' > benchmark-report/index.html + exit 0 fi curl -L -H "Authorization: Bearer ${{ secrets.CUSTOM_GH_TOKEN }}" \ "$artifact_url" -o benchmark-report.zip - - # Print all files in the current directory echo "Files in the current directory:" ls -al