Skip to content

Commit

Permalink
fix: Wrong release-id output
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalanamini committed Aug 28, 2022
1 parent cfdd243 commit b1f62f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion action/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion action/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ async function run(): Promise<void> {

if (semver != null) {
prerelease = semver.prerelease.length > 0;
releaseId = semver.prerelease[0] as string;

if (prerelease) releaseId = semver.prerelease[0] as string;
}

const { sha: tagRef, name: tagName } = await getTagSha({
Expand Down

0 comments on commit b1f62f9

Please sign in to comment.