Skip to content

Commit

Permalink
Amend debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Jul 8, 2024
1 parent 64eb26f commit 0c4145a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/setup/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ export async function resolveStableVersionInput(
const versions = releases.map(
release => `${semver.major(release)}.${semver.minor(release)}`
)
core.debug(`Filtered versions info: ${JSON.stringify(versions)}`)

const uniqueVersions = Array.from(new Set(versions))
core.debug(`Unique versions info: ${JSON.stringify(versions)}`)

return releases.find(item => item.startsWith(uniqueVersions[1]))
}

0 comments on commit 0c4145a

Please sign in to comment.