mirror of
https://git.madhouse-project.org/actions/nix.git
synced 2024-11-23 20:19:16 +01:00
63e7eb4047
There's a valid use case for wanting to run `nix develop` without executing anything: to get the dependencies installed. This way the output of future steps will have considerably cleaner, more relevant outputs. Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
25 lines
684 B
YAML
25 lines
684 B
YAML
---
|
|
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: false
|
|
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 }}
|