1
0
Fork 0
mirror of https://git.madhouse-project.org/actions/nix.git synced 2025-05-15 07:59:53 +02:00

Add a nix/develop action

Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This commit is contained in:
Gergely Nagy 2023-09-22 20:37:44 +02:00
parent 680f954a87
commit 3935dfdac3
5 changed files with 106 additions and 0 deletions

25
develop/action.yml Normal file
View file

@ -0,0 +1,25 @@
---
name: nix-develop
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: true
runs:
using: "composite"
steps:
- id: nix-develop
shell: bash
run: $GITHUB_ACTION_PATH/bin/nix-develop
env:
INPUT_FLAKE: ${{ inputs.flake }}
INPUT_PACKAGE: ${{ inputs.package }}
INPUT_RUN: ${{ inputs.run }}