Skip to content

Commit a56e3a8

Browse files
authored
Merge pull request #199 from jalaziz/tempdir
fix: Set TMPDIR to avoid disk space issues
2 parents 300721f + 81eb746 commit a56e3a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

install-nix.sh

+5
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,10 @@ if [[ -n "${INPUT_NIX_PATH:-}" ]]; then
9191
echo "NIX_PATH=${INPUT_NIX_PATH}" >> "$GITHUB_ENV"
9292
fi
9393

94+
# Set temporary directory (if not already set) to fix https://github.com/cachix/install-nix-action/issues/197
95+
if [[ -z "${TMPDIR:-}" ]]; then
96+
echo "TMPDIR=${RUNNER_TEMP}" >> "$GITHUB_ENV"
97+
fi
98+
9499
# Close the log message group which was opened above
95100
echo "::endgroup::"

0 commit comments

Comments
 (0)