add flakehub-flake-name input

This commit is contained in:
Cole Helbling 2024-02-27 09:24:08 -08:00
parent a9e1cd743c
commit 22cdf3ac39
2 changed files with 5 additions and 0 deletions

View file

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

View file

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