Skip to content

Commit f955c44

Browse files
committed
fix: add error message for empty min_lock_date filter
1 parent 745e563 commit f955c44

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/check_nn_versions.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ jobs:
6262
id: filter
6363
run: |
6464
echo "config=$(jq --arg date $MIN_LOCK_DATE --compact-output '[.[] | select(.date >= $date)]' config.json)" >> "$GITHUB_OUTPUT"
65+
- name: Validate filtered versions
66+
if: steps.filter.outputs.config == '[]'
67+
run: |
68+
echo "::error::No R versions match min_lock_date '${{ env.MIN_LOCK_DATE }}'. Choose a date before the earliest configured version."
69+
exit 1
6570
R-CMD-check:
6671
needs: filter-nn-versions
6772
runs-on: '${{ matrix.os }}'

0 commit comments

Comments
 (0)