initial commit
This commit is contained in:
commit
32b4100252
1 changed files with 28 additions and 0 deletions
28
action.yml
Normal file
28
action.yml
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
name: niks3 Upload
|
||||||
|
description: Upload paths to a binary cache
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
server-url:
|
||||||
|
description: niks3 Server URL
|
||||||
|
default: https://niks3.tami.moe
|
||||||
|
required: false
|
||||||
|
|
||||||
|
# enable-openid-connect: true
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- name: niks3 upload
|
||||||
|
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 before cat
|
||||||
|
# cat /run/niks3-auth-token
|
||||||
|
# echo after cat
|
||||||
|
echo "$TOKEN" > /run/niks3-auth-token
|
||||||
|
niks3 push --pin nix-action $(realpath result)
|
||||||
|
env:
|
||||||
|
NIKS3_SERVER_URL: ${{ inputs.server-url }}
|
||||||
|
NIKS3_AUTH_TOKEN_FILE: /run/niks3-auth-token
|
||||||
|
TOKEN: ${{ inputs.token }}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue