From 56ecdbd74164a5db1999338fa591c4b4c91edf22 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Tue, 27 Jun 2023 09:36:19 -0700 Subject: [PATCH] Whoops did not save --- action.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 0397815..60b0fc7 100644 --- a/action.yml +++ b/action.yml @@ -159,19 +159,19 @@ runs: echo "Set NIX_INSTALLER_NIX_PACKAGE_URL=$NIX_INSTALLER_NIX_PACKAGE_URL" fi - NIX_EXTRA_CONF_FILE=/tmp/tmp.jvU0yFBwoanix-installer-extra-conf + NIX_EXTRA_CONF_FILE=$(mktemp --suffix=nix-installer-extra-conf) if [ -n "${{ inputs.extra-conf }}" ]; then - echo "${{ inputs.extra-conf }}" | tee -a ${NIX_EXTRA_CONF_FILE} + echo "${{ inputs.extra-conf }}" >> ${NIX_EXTRA_CONF_FILE} fi if [ -n "${{ inputs.github-token }}" ]; then - echo "access-tokens = github.com=${{ inputs.github-token }}" | tee -a ${NIX_EXTRA_CONF_FILE} + echo "access-tokens = github.com=${{ inputs.github-token }}" >> ${NIX_EXTRA_CONF_FILE} fi if [ "${{ inputs.trust-runner-user }}" == "true" ]; then - echo "trusted-users = root $USER" | tee -a ${NIX_EXTRA_CONF_FILE} + echo "trusted-users = root $USER" >> ${NIX_EXTRA_CONF_FILE} fi if [ -n "$NIX_EXTRA_CONF" ]; then - export NIX_INSTALLER_EXTRA_CONF="$(cat NIX_EXTRA_CONF_FILE")" + export NIX_INSTALLER_EXTRA_CONF="$(cat ${NIX_EXTRA_CONF_FILE}")" echo "Set NIX_INSTALLER_EXTRA_CONF=$NIX_INSTALLER_EXTRA_CONF" fi