Fix version
This commit is contained in:
parent
5d43a218cc
commit
769d787a52
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -29244,7 +29244,7 @@ class Setup {
|
||||
|
||||
const dir = (0,external_fs_.readdirSync)(external_path_.resolve(process.env.GITHUB_WORKSPACE), { withFileTypes: true })
|
||||
.map(entry => {
|
||||
return `${entry.isDirectory() ? '> ' : ' - '}${entry.name}`
|
||||
return `${entry.isDirectory() ? '> ' : ' '}${entry.name}`
|
||||
})
|
||||
.join('\n')
|
||||
|
||||
@ -35718,7 +35718,7 @@ async function run () {
|
||||
core.info(`version ${ version } detected`)
|
||||
|
||||
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 }`)
|
||||
|
||||
|
@ -13,7 +13,7 @@ export default class Setup {
|
||||
|
||||
const dir = readdirSync(path.resolve(process.env.GITHUB_WORKSPACE), { withFileTypes: true })
|
||||
.map(entry => {
|
||||
return `${entry.isDirectory() ? '> ' : ' - '}${entry.name}`
|
||||
return `${entry.isDirectory() ? '> ' : ' '}${entry.name}`
|
||||
})
|
||||
.join('\n')
|
||||
|
||||
|
@ -29,7 +29,7 @@ async function run () {
|
||||
core.info(`version ${ version } detected`)
|
||||
|
||||
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 }`)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user