change the prerelease condition
This commit is contained in:
parent
df8fd77d87
commit
d8ffba5266
@ -12,7 +12,7 @@ async function run() {
|
|||||||
const pdmVersion = core.getInput("version");
|
const pdmVersion = core.getInput("version");
|
||||||
const pdmPackage = pdmVersion ? `pdm==${pdmVersion}` : "pdm";
|
const pdmPackage = pdmVersion ? `pdm==${pdmVersion}` : "pdm";
|
||||||
const cmdArgs = ["-m", "pip", "install", "-U", pdmPackage];
|
const cmdArgs = ["-m", "pip", "install", "-U", pdmPackage];
|
||||||
if (core.getInput("prerelease")) {
|
if (core.getInput("prerelease") === 'true') {
|
||||||
cmdArgs.push("--pre");
|
cmdArgs.push("--pre");
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user