change the prerelease condition

This commit is contained in:
Frost Ming 2021-04-06 09:02:01 +08:00
parent df8fd77d87
commit d8ffba5266
No known key found for this signature in database
GPG Key ID: 5BFA9CB4DDA943BF

View File

@ -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 {