Skip to content

Commit

Permalink
print version
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain committed Jun 12, 2024
1 parent e5107be commit b3a9a7e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions action/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions action/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3a9a7e

Please sign in to comment.