From 9c740185853f48a1dcc73fb1351fcc6ad405d90f Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 24 Sep 2024 14:25:12 -0400 Subject: [PATCH] Address feedback --- README.md | 14 ++++++++------ src/main.rs | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 823d771..9bc2b5d 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,14 @@ Although the `flakehub-push` Action requires little configuration, you may benef ## Integration -This action sets outputs for integrating into CD pipelines: - -- `flake_name` Name of the flake. Example: `DeterminateSystems/flakehub-push` -- `flake_version` Name of the flake. Example: `0.1.99+rev-2075013a3f3544d45a96f4b35df4ed03cd53779c` -- `flakeref_descriptive` A loose reference to this release. Depending on this reference will require at least this version, and will also resolve to newer releases. This output is not sufficient for deployment pipelines, use `flake_exact` instead. Example: `DeterminateSystems/flakehub-push/0.1.99+rev-2075013a3f3544d45a96f4b35df4ed03cd53779c` -- `flakeref_exact` A precise reference that always resolves to this to this exact release. Example: `DeterminateSystems/flakehub-push/=0.1.99+rev-2075013a3f3544d45a96f4b35df4ed03cd53779c` +This action sets outputs for integrating into continuous delivery pipelines: + +| Output | Description | Example | +| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------- | +| `flake_name` | Name of the flake. | `DeterminateSystems/flakehub-push` | +| `flake_version` | Version of the published flake. | `0.1.99+rev-2075013a3f3544d45a96f4b35df4ed03cd53779c` | +| `flakeref_exact` | A precise reference that always resolves to this to this exact release. | `DeterminateSystems/flakehub-push/=0.1.99+rev-2075013a3f3544d45a96f4b35df4ed03cd53779c` | +| `flakeref_at_least` | A loose reference to this release. Depending on this reference will require at least this version, and will also resolve to newer releases. This output is not sufficient for deployment pipelines, use `flake_exact` instead. | `DeterminateSystems/flakehub-push/0.1.99+rev-2075013a3f3544d45a96f4b35df4ed03cd53779c` | ## More Information diff --git a/src/main.rs b/src/main.rs index 3b1111a..6bc8c1c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -224,7 +224,7 @@ async fn set_release_outputs(upload_name: &str, release_version: &str) { ("flake_name", upload_name), ("flake_version", release_version), ( - "flakeref_descriptive", + "flakeref_at_least", &format!("{}/{}", upload_name, release_version), ), (