File tree Expand file tree Collapse file tree 3 files changed +49
-16
lines changed Expand file tree Collapse file tree 3 files changed +49
-16
lines changed Original file line number Diff line number Diff line change
1
+ name : Flake Check
2
+
3
+ on :
4
+ workflow_run :
5
+ workflows : ["Flake Update"]
6
+ types :
7
+ - completed
8
+ push :
9
+ branches :
10
+ - main
11
+
12
+ jobs :
13
+ update :
14
+ runs-on : ubuntu-latest
15
+ permissions :
16
+ contents : write
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Install Nix
22
+ uses : cachix/install-nix-action@v23
23
+ with :
24
+ nix_path : nixpkgs=channel:nixos-unstable
25
+
26
+ - name : Install Nix Linting and Formatting Tools
27
+ run : nix-env -i statix nixpkgs-fmt -f '<nixpkgs>'
28
+
29
+ - name : Flake update
30
+ run : nix flake update
31
+
32
+ - name : Run Statix Lint
33
+ run : statix fix
34
+
35
+ - name : Run Nix Format
36
+ run : nixpkgs-fmt .
37
+
38
+
39
+ - name : Flake update
40
+ run : nix flake check --all-systems
Original file line number Diff line number Diff line change @@ -3,12 +3,9 @@ name: Flake Info
3
3
on :
4
4
workflow_dispatch :
5
5
workflow_run :
6
- workflows : ["Flake Update "]
6
+ workflows : ["Flake Check "]
7
7
types :
8
8
- completed
9
- push :
10
- branches :
11
- - main
12
9
13
10
jobs :
14
11
flake-info :
Original file line number Diff line number Diff line change 1
- name : Nix Flake Check
1
+ name : Nix Flake Update
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ schedule :
5
+ - cron : ' 0 0 * * *'
4
6
5
7
jobs :
6
8
update :
@@ -15,18 +17,12 @@ jobs:
15
17
uses : cachix/install-nix-action@v23
16
18
with :
17
19
nix_path : nixpkgs=channel:nixos-unstable
18
-
19
- - name : Install Nix Linting and Formatting Tools
20
- run : nix-env -i statix nixpkgs-fmt -f '<nixpkgs>'
21
-
22
- - name : Flake update
20
+
21
+ - name : Flake Update
23
22
run : nix flake update
24
23
25
- - name : Run Statix Lint
26
- run : statix fix
27
-
28
- - name : Run Nix Format
29
- run : nixpkgs-fmt .
24
+ - name : Manaul Flake check
25
+ run : nix flake check
30
26
31
27
- name : Nix Flake Checker
32
28
# You may pin to the exact commit or the version.
You can’t perform that action at this time.
0 commit comments