Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private flakes scaffolding #87

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] 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`
Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] 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.
Expand Down
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@ pub(crate) enum Visibility {
#[serde(rename = "unlisted")]
Hidden,
Unlisted,
Private,
}

impl Display for Visibility {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Visibility::Public => f.write_str("public"),
Visibility::Hidden | Visibility::Unlisted => f.write_str("unlisted"),
Visibility::Private => f.write_str("private"),
}
}
}