Skip to content

Commit

Permalink
Merge pull request #199 from jalaziz/tempdir
Browse files Browse the repository at this point in the history
fix: Set TMPDIR to avoid disk space issues
  • Loading branch information
domenkozar committed Nov 4, 2023
2 parents 300721f + 81eb746 commit a56e3a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install-nix.sh
Expand Up @@ -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::"

0 comments on commit a56e3a8

Please sign in to comment.