forked from DeterminateSystems/flake-checker-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
48 lines (48 loc) · 1.89 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
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
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
runs:
using: "node20"
main: "dist/index.js"