diff --git a/action.yml b/action.yml index fb753e51d5..9a0a8a5dc0 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/src/index.ts b/src/index.ts index 7d7596cb4a..f8f444398d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -26,7 +26,6 @@ async function run(): Promise { 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', @@ -193,11 +192,9 @@ async function run(): Promise { 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,