version -> deno-version
This commit is contained in:
parent
62abc69248
commit
b80476fbe0
|
@ -20,7 +20,7 @@ jobs:
|
|||
- name: Setup Deno
|
||||
uses: ./
|
||||
with:
|
||||
version: ${{ matrix.deno }}
|
||||
deno-version: ${{ matrix.deno }}
|
||||
|
||||
- name: Test Deno
|
||||
run: deno run https://deno.land/std/examples/welcome.ts
|
||||
|
|
|
@ -2,11 +2,11 @@ name: "Setup Deno environment"
|
|||
description: "Setup a Deno environment by installing, downloading, and adding it to the path."
|
||||
author: "Deno Land"
|
||||
inputs:
|
||||
version:
|
||||
deno-version:
|
||||
description: The Deno version to install. Can be a semver version of a stable release, "canary" for the latest canary, or the Git hash of a specific canary release.
|
||||
default: "1.x"
|
||||
outputs:
|
||||
version:
|
||||
deno-version:
|
||||
description: "The Deno version that was installed."
|
||||
is-canary:
|
||||
description: "If the installed Deno version was a canary version."
|
||||
|
|
4
main.js
4
main.js
|
@ -15,7 +15,7 @@ function exit(message) {
|
|||
|
||||
async function main() {
|
||||
try {
|
||||
const range = parseVersionRange(core.getInput("version"));
|
||||
const range = parseVersionRange(core.getInput("deno-version"));
|
||||
if (range === null) {
|
||||
exit("The passed version range is not valid.");
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ async function main() {
|
|||
|
||||
await install(version);
|
||||
|
||||
core.setOutput("version", version.version);
|
||||
core.setOutput("deno-version", version.version);
|
||||
core.setOutput("is-canary", version.isCanary);
|
||||
|
||||
core.info("Installation complete.");
|
||||
|
|
Loading…
Reference in New Issue