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'