2023-09-22 20:37:44 +02:00
|
|
|
---
|
|
|
|
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"
|
2023-09-22 21:28:07 +02:00
|
|
|
required: false
|
2023-09-22 20:37:44 +02:00
|
|
|
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 }}
|