From dcc3bd9ce65ac42a382cafc919a1b9437cd4ab71 Mon Sep 17 00:00:00 2001 From: Tamipes Date: Sun, 12 Jul 2026 02:06:30 +0200 Subject: [PATCH] wip: testing `mktemp` --- action.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 6622c4a..5dc988e 100644 --- a/action.yml +++ b/action.yml @@ -22,15 +22,12 @@ runs: run: | # echo "url is: $ACTIONS_ID_TOKEN_REQUEST_URL" # curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=https://niks3.tami.moe" > /run/niks3-auth-token - echo "$TOKEN" - echo "$TOKEN" > /run/niks3-auth-token - echo before cat - cat /run/niks3-auth-token - echo after cat + token_file=$($RUNNER_TEMP) + printf '%s' "$TOKEN" > "$token_file" + export NIKS3_AUTH_TOKEN_FILE="$token_file" niks3 push --pin "$NAME" "$(realpath result)" env: NIKS3_SERVER_URL: ${{ inputs.server-url }} - NIKS3_AUTH_TOKEN_FILE: /run/niks3-auth-token TOKEN: ${{ inputs.token }} NAME: ${{ inputs.pin }}