feat: add pin name to inputs

This commit is contained in:
Tamipes 2026-07-12 01:50:36 +02:00
parent a79e7722a0
commit a5b721280d

View file

@ -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 }}