From 50483bc3b33282fa3c8530eb4d6a75b154ffa7b5 Mon Sep 17 00:00:00 2001 From: Flook Peter Date: Thu, 6 Jun 2024 16:44:06 +0800 Subject: [PATCH] Add in check to see if benchmark has already run --- .github/workflows/benchmark.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 3e60589..3735a42 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -16,6 +16,15 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 2 + - name: Check if benchmark has already run + run: | + version=$(grep dataCatererVersion gradle.properties | cut -d= -f2) + if [ ! -f benchmark/results/benchmark_results_${version}.txt ]; then + echo "No benchmark results for version: $version, starting to run benchmarks" + else + echo "Benchmarks already run!" + exit 1 + fi - name: Checkout datafusion-comet repo uses: actions/checkout@v4 with: