autobuild: add working-directory input
This commit is contained in:
parent
2d80fe85fc
commit
b0c570ef83
5 changed files with 22 additions and 3 deletions
5
lib/autobuild-action.js
generated
5
lib/autobuild-action.js
generated
|
|
@ -52,6 +52,11 @@ async function run() {
|
|||
}
|
||||
language = (0, autobuild_1.determineAutobuildLanguage)(config, logger);
|
||||
if (language !== undefined) {
|
||||
const workingDirectory = (0, actions_util_1.getOptionalInput)("working-directory");
|
||||
if (workingDirectory) {
|
||||
logger.info(`Changing autobuilder working directory to ${workingDirectory}`);
|
||||
process.chdir(workingDirectory);
|
||||
}
|
||||
await (0, autobuild_1.runAutobuild)(language, config, logger);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue