diff --git a/README.md b/README.md index 9dc2437..f0e3a13 100644 --- a/README.md +++ b/README.md @@ -32,11 +32,16 @@ steps: run: (Get-Item (Get-Command msedge).Source).VersionInfo.ProductVersion ``` -## Parameters +### Input - `edge-version`: *(Optional)* The Edge version to be installed. Supported versions are "stable", "beta", "dev", and "canary". Default: `stable`. +### Output + +- `edge-version`: The installed Edge version. Useful when given a latest version. +- `edge-path`: The installed Edge path. + ## License [MIT](LICENSE) diff --git a/action.yml b/action.yml index ea58b13..0fac5c2 100644 --- a/action.yml +++ b/action.yml @@ -7,6 +7,11 @@ inputs: The Edge version to be installed. Supported versions are "stable", "beta", "dev" default: stable required: false +outputs: + edge-version: + description: 'The installed Edge version. Useful when given a latest version.' + edge-path: + description: 'The installed Edge path.' runs: using: 'node16' main: 'index.js' diff --git a/src/index.ts b/src/index.ts index d6ec5bc..6681350 100644 --- a/src/index.ts +++ b/src/index.ts @@ -42,6 +42,9 @@ async function run(): Promise { const result = await installer.install(version, downloaded.archive); core.info(`Successfully setup Edge ${version}`); + core.setOutput("edge-version", version); + core.setOutput("edge-path", path.join(result.root, result.bin)); + return result; })();