Commit 40eff214 authored by tom's avatar tom

[skip ci] fix PM workflow

parent 2478ee25
......@@ -97,11 +97,11 @@ jobs:
}
if (projects.length > 1) {
core.info(`Fould ${ projects.length } with the similar name:`);
core.info(`Found ${ projects.length } with the similar name:`);
projects.forEach((issue) => {
core.info(` #${ projects.number } - ${ projects.title }`);
})
core.setFailed('Fould multiple projects with the similar name. Cannot determine which one to use.');
core.setFailed('Found multiple projects with the similar name. Cannot determine which one to use.');
return;
}
......@@ -212,8 +212,12 @@ jobs:
for (const item of items) {
core.info(`Changing field value for item ${ item }...`);
try {
await changeItemFieldValue(item);
core.info('Done.\n');
} catch (error) {
core.info(`Error: ${ error.message }\n`);
}
}
async function changeItemFieldValue(itemId) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment