Skip to content

Commit

Permalink
add release-channel output
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats committed Sep 13, 2024
1 parent 9353985 commit 3bea55f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ outputs:
description: "The Deno version that was installed."
is-canary:
description: "If the installed Deno version was a canary version."
release-channel:
description: "The release channel of the installed version."
runs:
using: "node20"
main: "main.js"
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ async function main() {
await install(version);

core.setOutput("deno-version", version.version);
// TODO(@crowlKats): change this output to "kind"
// TODO(@crowlKats): remove in 2.0
core.setOutput("is-canary", version.kind === "canary");
core.setOutput("release-channel", version.kind);

core.info("Installation complete.");
} catch (err) {
Expand Down

0 comments on commit 3bea55f

Please sign in to comment.