version -> deno-version

This commit is contained in:
Luca Casonato 2021-04-10 02:20:00 +02:00
parent 62abc69248
commit b80476fbe0
No known key found for this signature in database
GPG Key ID: 789878CF6382A84F
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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."

View File

@ -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.");