Skip to content

Commit

Permalink
Merge pull request #107 from chorus-ai/tp/skip_benchmark
Browse files Browse the repository at this point in the history
Prevent error in github action if no benchmarks are run.
  • Loading branch information
briangow authored Oct 31, 2024
2 parents 9ba4144 + 44ef5f9 commit bd8b523
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,13 @@ jobs:
- name: Concatenate results
run: |
cat benchmark_results_*.txt > final_results.txt
echo "Benchmark results:"
cat final_results.txt
if ls benchmark_results_*.txt 1> /dev/null 2>&1; then
cat benchmark_results_*.txt > final_results.txt
echo "Benchmark results:"
cat final_results.txt
else
echo "No benchmarks were run." > final_results.txt
fi
- name: Post results to pull request
uses: actions/github-script@v7
Expand Down

0 comments on commit bd8b523

Please sign in to comment.