mirror of
https://github.com/DeterminateSystems/flake-checker.git
synced 2024-09-11 22:27:14 +03:00
Fix CI condition
This commit is contained in:
parent
72a553f515
commit
380af3cbc0
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -48,7 +48,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
nix develop -c \
|
nix develop -c \
|
||||||
cargo run -- \
|
cargo run -- \
|
||||||
--condition "allowedRefs.contains(gitRef) && numDaysOld < 30 && owner == 'NixOS'" \
|
--condition "supportedRefs.contains(gitRef) && numDaysOld < 30 && owner == 'NixOS'" \
|
||||||
./tests/flake.cel.clean.0.lock
|
./tests/flake.cel.clean.0.lock
|
||||||
|
|
||||||
check-flake-dirty:
|
check-flake-dirty:
|
||||||
|
@ -76,14 +76,14 @@ Variable | Description
|
|||||||
We recommend a condition *at least* this stringent:
|
We recommend a condition *at least* this stringent:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
allowedRefs.contains(gitRef) && numDaysOld < 30 && owner == 'NixOS'
|
supportedRefs.contains(gitRef) && numDaysOld < 30 && owner == 'NixOS'
|
||||||
```
|
```
|
||||||
|
|
||||||
Here are some other example conditions:
|
Here are some other example conditions:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
# Updated in the last two weeks
|
# 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
|
# Check for most recent stable Nixpkgs
|
||||||
gitRef.contains("24.05")
|
gitRef.contains("24.05")
|
||||||
|
Loading…
Reference in New Issue
Block a user