Fix version

This commit is contained in:
Al Azhar 2024-08-15 14:27:04 +07:00
parent 5d43a218cc
commit 769d787a52
3 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View File

@ -29244,7 +29244,7 @@ class Setup {
const dir = (0,external_fs_.readdirSync)(external_path_.resolve(process.env.GITHUB_WORKSPACE), { withFileTypes: true }) const dir = (0,external_fs_.readdirSync)(external_path_.resolve(process.env.GITHUB_WORKSPACE), { withFileTypes: true })
.map(entry => { .map(entry => {
return `${entry.isDirectory() ? '> ' : ' - '}${entry.name}` return `${entry.isDirectory() ? '> ' : ' '}${entry.name}`
}) })
.join('\n') .join('\n')
@ -35718,7 +35718,7 @@ async function run () {
core.info(`version ${ version } detected`) core.info(`version ${ version } detected`)
const [major, minor, patch, pre] = version.split(".") const [major, minor, patch, pre] = version.split(".")
version = `${major}.${minor}.${patch}${pre ? "-beta." + pre : ""}` version = `${major}.${minor}.${patch}${pre ? (pre == 0 ? "" : "-beta." + pre) : ""}`
core.info(`version translated to ${ version }`) core.info(`version translated to ${ version }`)

View File

@ -13,7 +13,7 @@ export default class Setup {
const dir = readdirSync(path.resolve(process.env.GITHUB_WORKSPACE), { withFileTypes: true }) const dir = readdirSync(path.resolve(process.env.GITHUB_WORKSPACE), { withFileTypes: true })
.map(entry => { .map(entry => {
return `${entry.isDirectory() ? '> ' : ' - '}${entry.name}` return `${entry.isDirectory() ? '> ' : ' '}${entry.name}`
}) })
.join('\n') .join('\n')

View File

@ -29,7 +29,7 @@ async function run () {
core.info(`version ${ version } detected`) core.info(`version ${ version } detected`)
const [major, minor, patch, pre] = version.split(".") const [major, minor, patch, pre] = version.split(".")
version = `${major}.${minor}.${patch}${pre ? "-beta." + pre : ""}` version = `${major}.${minor}.${patch}${pre ? (pre == 0 ? "" : "-beta." + pre) : ""}`
core.info(`version translated to ${ version }`) core.info(`version translated to ${ version }`)