Skip to content

Commit 433f47d

Browse files
committed
refactor(ci): simplify if-s
1 parent fa3e253 commit 433f47d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/buildjet-ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ jobs:
115115
run: ${{ env.pin_nixpkgs }}
116116

117117
- name: Install nixpkgs#poetry
118-
if: ${{ matrix.id == 1 }}
118+
if: matrix.id == 1
119119
run: nix profile install nixpkgs#poetry
120120

121121
- name: Install nixpkgs#nodejs
122-
if: ${{ matrix.id == 2 }}
122+
if: matrix.id == 2
123123
run: nix profile install nixpkgs#nodejs
124124

125125
- name: Save Nix store - ${{ matrix.id }}
@@ -314,7 +314,7 @@ jobs:
314314
- uses: nixbuild/nix-quick-install-action@v28
315315

316316
- name: Restore and save Nix store
317-
if: ${{ matrix.do-cache }}
317+
if: matrix.do-cache
318318
uses: ./.
319319
with:
320320
# save a new cache every time ci file changes

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ jobs:
123123
run: ${{ env.pin_nixpkgs }}
124124

125125
- name: Install nixpkgs#poetry
126-
if: ${{ matrix.id == 1 }}
126+
if: matrix.id == 1
127127
run: nix profile install nixpkgs#poetry
128128

129129
- name: Install nixpkgs#nodejs
130-
if: ${{ matrix.id == 2 }}
130+
if: matrix.id == 2
131131
run: nix profile install nixpkgs#nodejs
132132

133133
- name: Save Nix store - ${{ matrix.id }}
@@ -315,7 +315,7 @@ jobs:
315315
- uses: nixbuild/nix-quick-install-action@v28
316316

317317
- name: Restore and save Nix store
318-
if: ${{ matrix.do-cache }}
318+
if: matrix.do-cache
319319
uses: ./.
320320
with:
321321
# save a new cache every time ci file changes

nix/ci.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ in
156156
run: ''${{ env.pin_nixpkgs }}
157157
158158
- name: Install nixpkgs#poetry
159-
if: ''${{ matrix.id == 1 }}
159+
if: matrix.id == 1
160160
run: nix profile install nixpkgs#poetry
161161
162162
- name: Install nixpkgs#nodejs
163-
if: ''${{ matrix.id == 2 }}
163+
if: matrix.id == 2
164164
run: nix profile install nixpkgs#nodejs
165165
166166
- name: Save Nix store - ''${{ matrix.id }}
@@ -304,7 +304,7 @@ in
304304
${indent 6 nix-quick-install-action}
305305
306306
- name: Restore and save Nix store
307-
if: ''${{ matrix.do-cache }}
307+
if: matrix.do-cache
308308
uses: ./.
309309
with:
310310
# save a new cache every time ci file changes

0 commit comments

Comments
 (0)