diff --git a/src/main.js b/src/main.js index 5e8da64..b6b5531 100644 --- a/src/main.js +++ b/src/main.js @@ -90,15 +90,15 @@ async function main() { const actions = core.getInput('actions', { required: true }); const actionsArr = actions.split(','); - actionsArr.forEach(item => { - testActions(item.trim()); - }); + for (const action of actionsArr) { + await testActions(action.trim()); + } - function testActions(action) { + async function testActions(action) { if (ALLACTIONS.includes(action)) { - choseActions(action); + await choseActions(action); } else { - core.setFailed('This actions not supported!'); + core.setFailed(`Actions: [${action}] is not supported!`); } }