forked from DeterminateSystems/flake-checker-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
61 lines (61 loc) · 2.41 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Nix Flake Checker
description: |
Check your `flake.lock` files for common problems like outdated Nixpkgs releases.
branding:
icon: "box"
color: "purple"
inputs:
flake-lock-path:
description: |
The path to the `flake.lock` file you want to check.
default: flake.lock
condition:
description: |
A Common Expression Language (CEL) condition expressing your flake policy.
Supersedes all `check-*` parameters.
required: false
check-outdated:
description: |
Whether to check that the root Nixpkgs input is less than 30 days old.
default: true
check-owner:
description: |
Whether to check that the root Nixpkgs input has the `NixOS` GitHub org as its owner.
default: true
check-supported:
description: |
Whether to check that the root Nixpkgs input has a supported Git ref. Currently supported
refs: `nixos-22.11`, `nixos-22.11-small`, `nixos-23.05`, `nixos-23.05-small`, `nixos-unstable`,
`nixos-unstable-small`, `nixpkgs-22.11-darwin`, `nixpkgs-23.05-darwin`, `nixpkgs-unstable`.
default: true
ignore-missing-flake-lock:
description: |
Whether to ignore a missing `flake.lock` file, where the path to the file is the value of
`flake-lock-path` parameter. If set to `false` (the default is `true`), the Action throws
an error and the job fails if the lockfile is missing.
default: true
nixpkgs-keys:
description: |
The names of the Nixpkgs inputs you want to check. By default the checker only checks the
`nixpkgs` but you can specify multiple names as a comma-separated list, such as
`nixpkgs,nixpkgs-macos,nixpkgs-unstable`.
default: nixpkgs
fail-mode:
description: Fail with an exit code of 1 if any issues are encountered.
default: false
send-statistics:
description: |
Anonymously report the number of issues detected by the Nix Flake Checker. This reporting helps
measure (and thereby improve) the effectiveness of the checker. Set to `false` to disable.
default: true
source-binary:
description: |
Run a version of flake-checker from somewhere already on disk. Intended only for testing the Action.
required: false
_internal-strict-mode:
description: Whether to fail when any errors are thrown. Used only to test the Action; do not set this in your own workflows.
required: false
default: false
runs:
using: "node20"
main: "dist/index.js"