Fix CI condition

This commit is contained in:
Luc Perkins 2024-06-17 18:37:22 -07:00
parent 72a553f515
commit 380af3cbc0
No known key found for this signature in database
GPG Key ID: 16DB1108FB591835
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ jobs:
run: |
nix develop -c \
cargo run -- \
--condition "allowedRefs.contains(gitRef) && numDaysOld < 30 && owner == 'NixOS'" \
--condition "supportedRefs.contains(gitRef) && numDaysOld < 30 && owner == 'NixOS'" \
./tests/flake.cel.clean.0.lock
check-flake-dirty:

View File

@ -76,14 +76,14 @@ Variable | Description
We recommend a condition *at least* this stringent:
```ruby
allowedRefs.contains(gitRef) && numDaysOld < 30 && owner == 'NixOS'
supportedRefs.contains(gitRef) && numDaysOld < 30 && owner == 'NixOS'
```
Here are some other example conditions:
```ruby
# Updated in the last two weeks
allowedRefs.contains(gitRef) && numDaysOld < 14 && owner == 'NixOS'
supportedRefs.contains(gitRef) && numDaysOld < 14 && owner == 'NixOS'
# Check for most recent stable Nixpkgs
gitRef.contains("24.05")