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