From b80476fbe0c169c00e3d636222db85d8f1ba74c5 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Sat, 10 Apr 2021 02:20:00 +0200 Subject: [PATCH] version -> deno-version --- .github/workflows/test.yml | 2 +- action.yml | 4 ++-- main.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5589144..336c109 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/action.yml b/action.yml index 671a085..8991429 100644 --- a/action.yml +++ b/action.yml @@ -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." diff --git a/main.js b/main.js index 7c3083d..9b5e350 100644 --- a/main.js +++ b/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.");