feat: add plugins (#1099)

* feat: add plugins

* fix: add test
This commit is contained in:
Tom Hu
2023-09-22 17:29:50 -05:00
committed by GitHub
parent 572779f95b
commit 428cda1b1c
7 changed files with 28 additions and 12 deletions

View File

@@ -139,6 +139,7 @@ const buildUploadExec = () => {
const overrideBuild = core.getInput('override_build');
const overrideCommit = core.getInput('override_commit');
const overridePr = core.getInput('override_pr');
const plugins = core.getInput('plugins');
const rootDir = core.getInput('root_dir');
const searchDir = core.getInput('directory');
const slug = core.getInput('slug');
@@ -220,6 +221,11 @@ const buildUploadExec = () => {
) {
uploadExecArgs.push('-P', `${context.payload.number}`);
}
if (plugins) {
plugins.split(',').map((p) => p.trim()).forEach((p) => {
uploadExecArgs.push('--plugin', `${p}`);
});
}
if (rootDir) {
uploadExecArgs.push('--network-root-folder', `${rootDir}`);
}