From a5b721280da02f05a82523adf3c8e50dc207dcc4 Mon Sep 17 00:00:00 2001 From: Tamipes Date: Sun, 12 Jul 2026 01:50:36 +0200 Subject: [PATCH] feat: add `pin` name to inputs --- action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 81c72f0..6622c4a 100644 --- a/action.yml +++ b/action.yml @@ -9,6 +9,9 @@ inputs: token: description: The api token in niks3 required: true + pin: + description: The name of the pin + required: true # enable-openid-connect: true @@ -24,9 +27,10 @@ runs: echo before cat cat /run/niks3-auth-token echo after cat - niks3 push --pin nix-action $(realpath result) + niks3 push --pin "$NAME" "$(realpath result)" env: NIKS3_SERVER_URL: ${{ inputs.server-url }} NIKS3_AUTH_TOKEN_FILE: /run/niks3-auth-token TOKEN: ${{ inputs.token }} + NAME: ${{ inputs.pin }}