mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-08-20 02:35:58 +08:00
23 lines
595 B
TypeScript
23 lines
595 B
TypeScript
import { dealStringToArr, THANKS } from 'actions-util';
|
|
|
|
import * as github from '@actions/github';
|
|
|
|
import * as core from './core';
|
|
import { IssueHelperEngine } from './helper';
|
|
import type { TAction } from './types';
|
|
|
|
async function main() {
|
|
try {
|
|
const actions = core.getInput('actions', { required: true }) as string;
|
|
const IHE = new IssueHelperEngine(github.context);
|
|
for (const action of dealStringToArr(actions)) {
|
|
await IHE.doExeAction(action as TAction);
|
|
}
|
|
core.baseInfo(`\n${THANKS}`);
|
|
} catch (err: any) {
|
|
core.setFailed(err.message);
|
|
}
|
|
}
|
|
|
|
main();
|