Change directory to cwd before running git user setup. (#161)

This commit is contained in:
Russell Bicknell
2022-03-15 15:07:12 +01:00
committed by GitHub
parent b0aaf6aed5
commit 52c9ce75d9
2 changed files with 11 additions and 6 deletions
+6 -6
View File
@@ -14,6 +14,12 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
return;
}
const inputCwd = core.getInput("cwd");
if (inputCwd) {
console.log("changing directory to the one given as the input");
process.chdir(inputCwd);
}
let setupGitUser = core.getBooleanInput("setupGitUser");
if (setupGitUser) {
@@ -27,12 +33,6 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
`machine github.com\nlogin github-actions[bot]\npassword ${githubToken}`
);
const inputCwd = core.getInput("cwd");
if (inputCwd) {
console.log("changing directory to the one given as the input");
process.chdir(inputCwd);
}
let { changesets } = await readChangesetState();
let publishScript = core.getInput("publish");