diff --git a/.github/workflows/bench-turbopack.yml b/.github/workflows/bench-turbopack.yml index 50d7ed7504385..ea4590fe925a2 100644 --- a/.github/workflows/bench-turbopack.yml +++ b/.github/workflows/bench-turbopack.yml @@ -294,7 +294,11 @@ jobs: - name: Copy benchmark results run: | - find artifacts -size 0 -delete + if [ ! -d artifacts ]; then + echo "Artifacts directory not found. Skipping copy." + exit 0 + fi + find artifacts -size 0 -delete || true mkdir -p data/${{ steps.date.outputs.year }}/${{ steps.date.outputs.month }}/ubuntu-latest-8-core/${{ steps.date.outputs.date }}-${{ github.sha }}/ mv artifacts/bench_* data/${{ steps.date.outputs.year }}/${{ steps.date.outputs.month }}/ubuntu-latest-8-core/${{ steps.date.outputs.date }}-${{ github.sha }}/