mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-08-19 10:15:59 +08:00
fix: actions type
This commit is contained in:
12
dist/index.js
vendored
12
dist/index.js
vendored
@@ -6564,14 +6564,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)) {
|
||||
|
Reference in New Issue
Block a user