fix: actions type

This commit is contained in:
xrkffgg
2020-12-23 15:54:07 +08:00
parent 9ab2f06cee
commit f052d07a2e
3 changed files with 27 additions and 34 deletions

View File

@@ -74,14 +74,10 @@ async function main() {
}
const actions = core.getInput("actions", { required: true });
if (typeof(actions) === 'object') {
actions.forEach(item => {
testActions(item);
})
} else {
testActions(actions);
}
const actionsArr = actions.split(',');
actionsArr.forEach(item => {
testActions(item.trim());
});
function testActions(action) {
if (ALLACTIONS.includes(action)) {