feat: add pin name to inputs
This commit is contained in:
parent
a79e7722a0
commit
a5b721280d
1 changed files with 5 additions and 1 deletions
|
|
@ -9,6 +9,9 @@ inputs:
|
||||||
token:
|
token:
|
||||||
description: The api token in niks3
|
description: The api token in niks3
|
||||||
required: true
|
required: true
|
||||||
|
pin:
|
||||||
|
description: The name of the pin
|
||||||
|
required: true
|
||||||
|
|
||||||
# enable-openid-connect: true
|
# enable-openid-connect: true
|
||||||
|
|
||||||
|
|
@ -24,9 +27,10 @@ runs:
|
||||||
echo before cat
|
echo before cat
|
||||||
cat /run/niks3-auth-token
|
cat /run/niks3-auth-token
|
||||||
echo after cat
|
echo after cat
|
||||||
niks3 push --pin nix-action $(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
|
NIKS3_AUTH_TOKEN_FILE: /run/niks3-auth-token
|
||||||
TOKEN: ${{ inputs.token }}
|
TOKEN: ${{ inputs.token }}
|
||||||
|
NAME: ${{ inputs.pin }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue