Skip to content

Commit

Permalink
add attribute selector to load nix action
Browse files Browse the repository at this point in the history
  • Loading branch information
tateexon committed Jul 31, 2024
1 parent 045c408 commit e6aec4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/load-nix/action.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Load Nix
description: Load nix and make a call to clear out all the output on first run
inputs:
nix-flake-attribute:
description: The nix flake attribute to select a specific environment to use for commands
required: false
default: ''
runs:
using: 'composite'
steps:
Expand All @@ -10,4 +15,4 @@ runs:
- name: Pre-Load Nix
shell: bash
run: |
nix develop -c sh -c "echo \"load\""
nix develop ${{inputs.nix-flake-attribute}} -c sh -c "echo \"load\""

0 comments on commit e6aec4a

Please sign in to comment.