wip: testing mktemp

This commit is contained in:
Tamipes 2026-07-12 02:06:30 +02:00
parent a5b721280d
commit dcc3bd9ce6

View file

@ -22,15 +22,12 @@ runs:
run: | run: |
# echo "url is: $ACTIONS_ID_TOKEN_REQUEST_URL" # 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 # 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" token_file=$($RUNNER_TEMP)
echo "$TOKEN" > /run/niks3-auth-token printf '%s' "$TOKEN" > "$token_file"
echo before cat export NIKS3_AUTH_TOKEN_FILE="$token_file"
cat /run/niks3-auth-token
echo after cat
niks3 push --pin "$NAME" "$(realpath result)" niks3 push --pin "$NAME" "$(realpath result)"
env: env:
NIKS3_SERVER_URL: ${{ inputs.server-url }} NIKS3_SERVER_URL: ${{ inputs.server-url }}
NIKS3_AUTH_TOKEN_FILE: /run/niks3-auth-token
TOKEN: ${{ inputs.token }} TOKEN: ${{ inputs.token }}
NAME: ${{ inputs.pin }} NAME: ${{ inputs.pin }}