1
0
Fork 0
mirror of https://git.madhouse-project.org/actions/nix.git synced 2024-11-24 04:29:17 +01:00
nix/shell/action.yml

26 lines
678 B
YAML
Raw Normal View History

---
name: nix-shell
author: Gergely Nagy
description: "Run commands within a Nix development environment"
inputs:
flake:
description: "The flake to use for the development environment"
default: "."
required: true
package:
description: "The package to use for the development environment"
required: false
run:
description: "Commands to run within the development environment"
required: false
runs:
using: "composite"
steps:
- id: nix-shell
shell: bash
run: $GITHUB_ACTION_PATH/bin/nix-shell
env:
INPUT_FLAKE: ${{ inputs.flake }}
INPUT_PACKAGE: ${{ inputs.package }}
INPUT_RUN: ${{ inputs.run }}