chore: cleanup; it works for now
This commit is contained in:
parent
1c9483ce01
commit
d32d687b61
1 changed files with 2 additions and 5 deletions
|
|
@ -22,11 +22,8 @@ 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 "starting..."
|
export NIKS3_AUTH_TOKEN_FILE=$(mktemp)
|
||||||
token_file=$(mktemp)
|
printf '%s' "$TOKEN" > "$NIKS3_AUTH_TOKEN_FILE"
|
||||||
echo "$token_file"
|
|
||||||
printf '%s' "$TOKEN" > "$token_file"
|
|
||||||
export NIKS3_AUTH_TOKEN_FILE="$token_file"
|
|
||||||
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 }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue