From a316068a61ad274cb095c153ff76a92844946158 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Tue, 26 Sep 2023 15:02:00 -0700 Subject: [PATCH] Private flakes scaffolding --- README.md | 2 +- action.yaml | 2 +- src/main.rs | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a33f58a..ffb9b32 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ jobs: Parameter | Description | Type | Required? | Default :---------|:------------|:-----|:----------|:------- -`visibility` | `public` or `unlisted` | enum | ✅ | +`visibility` | `public`, `unlisted`, or `private`. Private flakes are in private beta, contact support@flakehub.com to sign up. | enum | ✅ | `repository` | The GitHub repository containing your flake in the format of `{org}/{repo}`. | string | ✅ | `${{ github.repository }}` `name` | The name of your published flake in the format of `{org}/{name}`. The `{org}` must match your organization's GitHub root name or the publish will fail. Specify this only if you want to publish under a different name from the `{org}/{repo}`. | string | | `mirror` | Whether the repository is mirrored via DeterminateSystems' mirror functionality. This is only usable by DeterminateSystems. | Boolean | | `false` diff --git a/action.yaml b/action.yaml index ed8fc9f..123833a 100644 --- a/action.yaml +++ b/action.yaml @@ -6,7 +6,7 @@ description: "Find, install, and publish Nix Flakes with FlakeHub." inputs: visibility: - description: "`public` or `unlisted`" + description: "`public`, `unlisted`, or `private`. Private flakes are in private beta, contact support@flakehub.com to sign up." required: true name: description: The name of your published flake. In the format of OrgName/RepoName. OrgName must match your organization's GitHub root name or the publish will fail. diff --git a/src/main.rs b/src/main.rs index 05b5b30..5d8d93a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,6 +33,7 @@ pub(crate) enum Visibility { #[serde(rename = "unlisted")] Hidden, Unlisted, + Private, } impl Display for Visibility { @@ -40,6 +41,7 @@ impl Display for Visibility { match self { Visibility::Public => f.write_str("public"), Visibility::Hidden | Visibility::Unlisted => f.write_str("unlisted"), + Visibility::Private => f.write_str("private"), } } }