Merge pull request #199 from jalaziz/tempdir

fix: Set TMPDIR to avoid disk space issues
This commit is contained in:
Domen Kožar 2023-11-04 12:09:00 +00:00 committed by GitHub
commit a56e3a8089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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::"