mirror of
https://github.com/cachix/install-nix-action.git
synced 2024-11-21 08:00:53 +00:00
Merge pull request #199 from jalaziz/tempdir
fix: Set TMPDIR to avoid disk space issues
This commit is contained in:
commit
a56e3a8089
1 changed files with 5 additions and 0 deletions
|
@ -91,5 +91,10 @@ if [[ -n "${INPUT_NIX_PATH:-}" ]]; then
|
|||
echo "NIX_PATH=${INPUT_NIX_PATH}" >> "$GITHUB_ENV"
|
||||
fi
|
||||
|
||||
# Set temporary directory (if not already set) to fix https://github.com/cachix/install-nix-action/issues/197
|
||||
if [[ -z "${TMPDIR:-}" ]]; then
|
||||
echo "TMPDIR=${RUNNER_TEMP}" >> "$GITHUB_ENV"
|
||||
fi
|
||||
|
||||
# Close the log message group which was opened above
|
||||
echo "::endgroup::"
|
||||
|
|
Loading…
Reference in a new issue