mirror of
https://github.com/tauri-apps/tauri-action.git
synced 2026-01-31 00:35:20 +01:00
feat: Add appVersion output (#645)
* feat: add `appVersion` output * update
This commit is contained in:
5
.changes/add-version-output.md
Normal file
5
.changes/add-version-output.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
action: 'patch'
|
||||
---
|
||||
|
||||
The action added `appVersion` parameter to facilitate easy access to the current application version in action output.
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user