Skip to content

Commit beb9810

Browse files
committed
Limit devshells in github actions to only required packages
1 parent c0c96b6 commit beb9810

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/actionlint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
accept-flake-config = true
2121
# Make the Nix environment available to next steps
2222
- uses: rrbutani/use-nix-shell-action@v1
23+
with:
24+
flakes: nixpkgs#shellcheck,nixpkgs#actionlint
2325

2426
- name: actionlint
2527
run: |

.github/workflows/check-changelog.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ jobs:
3939
extra_nix_config: |
4040
accept-flake-config = true
4141
42-
- name: Check scriv fragments are correct
42+
- uses: rrbutani/use-nix-shell-action@v1
4343
if: steps.filter.outputs.cardano == 'true'
44-
uses: rrbutani/use-nix-shell-action@v1
4544
with:
46-
script: cd cardano-testnet && scriv collect --version "CI-CHECK" --keep
45+
flakes: nixpkgs#scriv
46+
- name: Check scriv fragments are correct
47+
if: steps.filter.outputs.cardano == 'true'
48+
run: cd cardano-testnet && scriv collect --version "CI-CHECK" --keep
4749

.github/workflows/shellcheck.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ jobs:
2020
with:
2121
extra_nix_config: |
2222
accept-flake-config = true
23-
# Make the Nix environment available to next steps
2423
- uses: rrbutani/use-nix-shell-action@v1
24+
with:
25+
flakes: nixpkgs#shellcheck
2526
- name: shellcheck
2627
run: |
2728
for file in $(git ls-files "*.sh")

0 commit comments

Comments
 (0)