From d3db2f5fa0127ce0772b24a1b8c89d05b4b51c3c Mon Sep 17 00:00:00 2001 From: DevMirza <53424436+Zaid-maker@users.noreply.github.com> Date: Wed, 31 Jul 2024 14:33:00 +0500 Subject: [PATCH] fix(ci): Trying to fix `benchmark-turbopack` workflow (#8090) ### Description Trying to fix the workflow by checking if the directory exists, a team member should check. ![Screenshot_20240521_182347](https://github.com/vercel/turbo/assets/53424436/a4dab48f-9514-4147-93ee-0775aefef624) ### Testing Instructions --- .github/workflows/bench-turbopack.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 }}/