Skip to content

Commit

Permalink
semver metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Puyodead1 committed Dec 22, 2023
1 parent 8ef7211 commit 2bd6858
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 0 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ inputs:
includeUpdaterJson:
description: 'whether to upload a static JSON file for the updater using GitHub Releases as the CDN'
default: true
shaAsVersion:
description: 'whether to use the commit SHA as the version for the updater JSON file or not.'
default: false
buildIdAsVersion:
description: 'whether to use a custom CI based build id as the version for the updater JSON file or not.'
default: false
Expand Down
9 changes: 3 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ async function run(): Promise<void> {
const includeRelease = core.getBooleanInput('includeRelease');
const includeDebug = core.getBooleanInput('includeDebug');
const includeUpdaterJson = core.getBooleanInput('includeUpdaterJson');
const shaAsVersion = core.getBooleanInput('shaAsVersion');
const buildIdAsVersion = core.getBooleanInput('buildIdAsVersion');
const updaterJsonKeepUniversal = core.getBooleanInput(
'updaterJsonKeepUniversal',
Expand Down Expand Up @@ -193,11 +192,9 @@ async function run(): Promise<void> {
await uploadVersionJSON({
owner,
repo,
version: shaAsVersion
? context.sha.substring(0, 7)
: buildIdAsVersion
? buildId
: info.version,
version: buildIdAsVersion
? `${info.version}+${buildId}`
: info.version,
notes: body,
tagName,
releaseId,
Expand Down

0 comments on commit 2bd6858

Please sign in to comment.