From 108714cf47a5c722c1bb17ba9322ff8b0bf68d7e Mon Sep 17 00:00:00 2001 From: ric-evans Date: Wed, 20 Nov 2024 17:54:30 -0600 Subject: [PATCH] update count logic - 3 --- .github/workflows/wipac-cicd.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wipac-cicd.yaml b/.github/workflows/wipac-cicd.yaml index 01567a7..eec7a0f 100644 --- a/.github/workflows/wipac-cicd.yaml +++ b/.github/workflows/wipac-cicd.yaml @@ -172,14 +172,14 @@ jobs: echo "Available datasets: $available_datasets" # Use the lesser of available_datasets and num_datasets for validation - effective_num_datasets=$(( available_datasets < ${{ matrix.max_num_datasets }} ? available_datasets : ${{ matrix.max_num_datasets }} )) - echo "Expected datasets: $effective_num_datasets" + expected_num_datasets=$(( available_datasets < ${{ matrix.max_num_datasets }} ? available_datasets : ${{ matrix.max_num_datasets }} )) + echo "Expected datasets: $expected_num_datasets" # Check processed count processed_count=$(find ${{ matrix.base_path }} -name '*.histo.hdf5' | wc -l) echo "Processed count: $processed_count" - if [[ $processed_count -lt $effective_num_datasets ]]; then + if [[ $processed_count -ne $expected_num_datasets ]]; then echo "Script did not process the expected number of datasets!" exit 1 fi