autobuild: add working-directory input
This commit is contained in:
parent
2d80fe85fc
commit
b0c570ef83
5 changed files with 22 additions and 3 deletions
|
|
@ -3,6 +3,7 @@ import * as core from "@actions/core";
|
|||
import {
|
||||
createStatusReportBase,
|
||||
getActionsStatus,
|
||||
getOptionalInput,
|
||||
getTemporaryDirectory,
|
||||
sendStatusReport,
|
||||
StatusReportBase,
|
||||
|
|
@ -71,6 +72,13 @@ async function run() {
|
|||
}
|
||||
language = determineAutobuildLanguage(config, logger);
|
||||
if (language !== undefined) {
|
||||
const workingDirectory = getOptionalInput("working-directory");
|
||||
if (workingDirectory) {
|
||||
logger.info(
|
||||
`Changing autobuilder working directory to ${workingDirectory}`
|
||||
);
|
||||
process.chdir(workingDirectory);
|
||||
}
|
||||
await runAutobuild(language, config, logger);
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue