File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 20
20
nix :
21
21
needs : pre_job
22
22
runs-on : ${{ matrix.os }}
23
+ env :
24
+ HAS_TOKEN : ${{ secrets.HLS_CACHIX_AUTH_TOKEN != '' }}
23
25
24
26
strategy :
25
27
fail-fast : false
@@ -39,14 +41,14 @@ jobs:
39
41
extra_nix_config : |
40
42
experimental-features = nix-command flakes
41
43
nix_path : nixpkgs=channel:nixos-unstable
42
- - if : ${{ needs.pre_job.outputs.should_skip != 'true' }}
44
+ - if : ${{ needs.pre_job.outputs.should_skip != 'true' && env.HAS_TOKEN == 'true' }}
43
45
uses : cachix/cachix-action@v8
44
46
with :
45
47
name : haskell-language-server
46
48
authToken : ${{ secrets.HLS_CACHIX_AUTH_TOKEN }}
47
49
- if : ${{ needs.pre_job.outputs.should_skip != 'true' }}
48
50
run : nix build
49
- - if : ${{ needs.pre_job.outputs.should_skip != 'true' }}
51
+ - if : ${{ needs.pre_job.outputs.should_skip != 'true' && env.HAS_TOKEN == 'true' }}
50
52
run : nix develop --profile dev && cachix push haskell-language-server dev
51
- - if : ${{ needs.pre_job.outputs.should_skip != 'true' }}
53
+ - if : ${{ needs.pre_job.outputs.should_skip != 'true' && env.HAS_TOKEN == 'true' }}
52
54
run : nix path-info --json | jq -r '.[].path' | cachix push haskell-language-server
You can’t perform that action at this time.
0 commit comments