Skip to content

Commit

Permalink
Reduce diff
Browse files Browse the repository at this point in the history
  • Loading branch information
kfcampbell committed Nov 17, 2023
1 parent 70ad867 commit d5bf917
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ async function main() {
};

core.debug(`Inputs: ${inspect(inputs)}`);

let [owner, repo] = process.env.GITHUB_REPOSITORY.split("/");
if (inputs.repository) {
[owner, repo] = inputs.repository.split("/");
Expand Down Expand Up @@ -698,8 +699,6 @@ async function main() {
if (inputs.pathToCdTo) {
core.debug(`Changing directory to ${inputs.pathToCdTo}`);
process.chdir(inputs.pathToCdTo);
console.log("running pwd");
await runShellCommand(`pwd`);
}

const { hasChanges } = await getLocalChanges(inputs.path);
Expand All @@ -710,6 +709,7 @@ async function main() {
} else {
core.info("No local changes");
}

core.setOutput("result", "unchanged");
process.exit(0); // there is currently no neutral exit code
}
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ async function main() {
};

core.debug(`Inputs: ${inspect(inputs)}`);

let [owner, repo] = process.env.GITHUB_REPOSITORY.split("/");
if (inputs.repository) {
[owner, repo] = inputs.repository.split("/");
Expand Down Expand Up @@ -87,8 +88,6 @@ async function main() {
if (inputs.pathToCdTo) {
core.debug(`Changing directory to ${inputs.pathToCdTo}`);
process.chdir(inputs.pathToCdTo);
console.log("running pwd");
await runShellCommand(`pwd`);
}

const { hasChanges } = await getLocalChanges(inputs.path);
Expand All @@ -99,6 +98,7 @@ async function main() {
} else {
core.info("No local changes");
}

core.setOutput("result", "unchanged");
process.exit(0); // there is currently no neutral exit code
}
Expand Down

0 comments on commit d5bf917

Please sign in to comment.