diff --git a/action.yaml b/action.yaml index 7ced9dd..5622a7d 100644 --- a/action.yaml +++ b/action.yaml @@ -9,6 +9,9 @@ inputs: token: description: 'The GitHub token to use for downloading the network-hub CLI.' required: true +outputs: + version: + description: 'The version of the network-hub CLI that was installed.' runs: using: 'node20' main: 'action/dist/index.js' diff --git a/action/dist/index.js b/action/dist/index.js index d6f256a..beffde2 100644 --- a/action/dist/index.js +++ b/action/dist/index.js @@ -32,6 +32,8 @@ async function setup() { return } + core.setOutput('version', version) + core.info(`Installing networkHub version ${version}`) // Download the specific version of the tool, e.g. as a tarball diff --git a/action/src/index.js b/action/src/index.js index 771d03a..4cb56f2 100644 --- a/action/src/index.js +++ b/action/src/index.js @@ -26,6 +26,8 @@ async function setup() { return } + core.setOutput('version', version) + core.info(`Installing networkHub version ${version}`) // Download the specific version of the tool, e.g. as a tarball