mirror of
https://git.madhouse-project.org/actions/nix.git
synced 2024-11-23 20:19:16 +01:00
795ee85b9a
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
12 lines
305 B
Bash
Executable file
12 lines
305 B
Bash
Executable file
#! /usr/bin/env bash
|
|
set -eo pipefail
|
|
|
|
LOGS=""
|
|
case "${INPUT_LOGS}" in
|
|
[yY][eE][sS]|[tT][rR][uU][eE]|[oO][nN]|1)
|
|
LOGS=-L
|
|
;;
|
|
esac
|
|
|
|
nix build ${LOGS} --out-link "${INPUT_OUT_LINK}" "${INPUT_FLAKE}#${INPUT_PACKAGE}"
|
|
echo "output-path=$(readlink "${INPUT_OUT_LINK}")" >>"${GITHUB_OUTPUT}"
|