feat: Add appVersion output (#645)

* feat: add `appVersion` output

* update
This commit is contained in:
Akirami
2023-12-19 06:40:07 +08:00
committed by GitHub
parent 508f95f949
commit d618a422b9
5 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
action: 'patch'
---
The action added `appVersion` parameter to facilitate easy access to the current application version in action output.

View File

@@ -118,6 +118,7 @@ These inputs allow you to modify the GitHub release.
| `releaseHtmlUrl` | The URL users can navigate to in order to view the created release |
| `releaseUploadUrl` | The URL for uploading assets to the created release |
| `artifactPaths` | The paths of the generated artifacts |
| `appVersion` | The version of the app |
## Caveats

View File

@@ -64,6 +64,8 @@ outputs:
description: 'The URL for uploading assets to the created release'
artifactPaths:
description: 'The paths of the generated artifacts'
appVersion:
description: 'The version of the app'
runs:
using: 'node20'
main: 'dist/index.js'

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -136,6 +136,7 @@ async function run(): Promise<void> {
core.setOutput('releaseUploadUrl', releaseData.uploadUrl);
core.setOutput('releaseId', releaseData.id.toString());
core.setOutput('releaseHtmlUrl', releaseData.htmlUrl);
core.setOutput('appVersion', info.version);
}
if (releaseId) {