Skip to content

Commit ab16895

Browse files
jneiraberberman
andauthored
Ignore nix job steps (#1672)
Co-authored-by: Potato Hatsue <[email protected]>
1 parent c7fd931 commit ab16895

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/nix.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919

2020
nix:
2121
needs: pre_job
22-
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
2322
runs-on: ${{ matrix.os }}
2423

2524
strategy:
@@ -29,14 +28,18 @@ jobs:
2928
os: [ubuntu-latest, macOS-latest]
3029

3130
steps:
32-
- uses: actions/checkout@v2
31+
- if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
32+
uses: actions/checkout@v2
3333
with:
3434
submodules: true
35-
- uses: cachix/install-nix-action@v12
35+
- if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
36+
uses: cachix/install-nix-action@v12
3637
with:
3738
nix_path: nixpkgs=channel:nixos-unstable
38-
- uses: cachix/cachix-action@v8
39+
- if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
40+
uses: cachix/cachix-action@v8
3941
with:
4042
name: haskell-language-server
4143
authToken: ${{ secrets.HLS_CACHIX_AUTH_TOKEN }}
42-
- run: nix-shell --argstr compiler ${{ matrix.ghc }} --run "cabal update && cabal build"
44+
- if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
45+
run: nix-shell --argstr compiler ${{ matrix.ghc }} --run "cabal update && cabal build"

0 commit comments

Comments
 (0)