Skip to content

Commit dab11ea

Browse files
btlogyhacklschorsch
andcommitted
Try job context instead
Co-authored-by: Florian Sesser <florian@leastauthority.com> Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
1 parent fda4f0b commit dab11ea

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/nix.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ on:
1414
- 'nix/**'
1515
- 'flake.*'
1616

17-
env:
18-
# This define the targeted systems we want to check (and later deploy) the nixosConfiguration
19-
MATRIX: |
20-
matrix={"include":[
21-
{"target":"webforge","hostname":"webforge","domain":"tahoe-lafs.org"}
22-
]}
23-
2417
jobs:
2518
check:
2619
name: Check
@@ -39,6 +32,12 @@ jobs:
3932
run: |
4033
nix flake show
4134
nix flake check
35+
env:
36+
# This define the targeted systems we want to check (and later deploy) the nixosConfiguration
37+
MATRIX: |
38+
matrix={"include":[
39+
{"target":"webforge","hostname":"webforge","domain":"tahoe-lafs.org"}
40+
]}
4241
4342
build:
4443
name: Build
@@ -47,7 +46,7 @@ jobs:
4746
needs: check
4847
strategy:
4948
fail-fast: false
50-
matrix: ${{fromJson(env.MATRIX)}}
49+
matrix: ${{fromJson(check.env.MATRIX)}}
5150
steps:
5251
- name: Checkout
5352
id: checkout

0 commit comments

Comments
 (0)