diff --git a/action.yml b/action.yml index 09cfa30..5f2b2db 100644 --- a/action.yml +++ b/action.yml @@ -22,11 +22,8 @@ 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 "starting..." - token_file=$(mktemp) - echo "$token_file" - printf '%s' "$TOKEN" > "$token_file" - export NIKS3_AUTH_TOKEN_FILE="$token_file" + export NIKS3_AUTH_TOKEN_FILE=$(mktemp) + printf '%s' "$TOKEN" > "$NIKS3_AUTH_TOKEN_FILE" niks3 push --pin "$NAME" "$(realpath result)" env: NIKS3_SERVER_URL: ${{ inputs.server-url }}