From 22cdf3ac392e8276e57ff39e8a819b029e7c7fe4 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Tue, 27 Feb 2024 09:24:08 -0800 Subject: [PATCH] add flakehub-flake-name input --- action.yml | 4 ++++ src/index.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/action.yml b/action.yml index 0e5027b..4f983f8 100644 --- a/action.yml +++ b/action.yml @@ -45,6 +45,10 @@ inputs: flakehub-api-server: description: "The FlakeHub API server." default: "https://api.flakehub.com" + flakehub-flake-name: + description: "The name of your flake on FlakeHub. Defaults to the current name of the GitHub repository it is running in." + default: ${{ github.repository }} + required: false startup-notification-port: description: "The port magic-nix-cache uses for daemon startup notification." default: 41239 diff --git a/src/index.ts b/src/index.ts index d7bb51c..198a743 100644 --- a/src/index.ts +++ b/src/index.ts @@ -162,6 +162,7 @@ async function setUpAutoCache() { '--flakehub-cache-server', core.getInput('flakehub-cache-server'), '--flakehub-api-server', core.getInput('flakehub-api-server'), '--flakehub-api-server-netrc', netrc, + '--flakehub-flake-name', core.getInput('flakehub-flake-name'), ] : []).concat( core.getInput('use-gha-cache') === 'true' ? [ '--use-gha-cache'