Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Dec 4, 2024
1 parent 6ad4ccf commit 7437faa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
10 changes: 4 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30826,11 +30826,7 @@ const main = async () => {
await setup.Run();
core.info(`Butler setup complete.`);
const apiKey = core.getInput('api-key', { required: true });
await exec.exec('butler', ['login'], {
env: {
BUTLER_API_KEY: apiKey
}
});
await exec.exec('butler', ['login'], { env: { BUTLER_API_KEY: apiKey } });
}
catch (error) {
core.setFailed(error);
Expand All @@ -30851,7 +30847,9 @@ const main = async () => {
break;
}
try {
await fs.promises.access(cacheDir, fs.constants.W_OK);
if (!fs.existsSync(cacheDir)) {
return;
}
await io.rmRF(cacheDir);
}
catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ const main = async () => {
await setup.Run();
core.info(`Butler setup complete.`);
const apiKey = core.getInput('api-key', { required: true });
await exec.exec('butler', ['login'], {
env: {
BUTLER_API_KEY: apiKey
}
});
await exec.exec('butler', ['login'], { env: { BUTLER_API_KEY: apiKey } });
} catch (error) {
core.setFailed(error);
}
Expand All @@ -38,7 +34,7 @@ const main = async () => {
break;
}
try {
await fs.promises.access(cacheDir, fs.constants.W_OK);
if (!fs.existsSync(cacheDir)) { return; }
await io.rmRF(cacheDir);
} catch (error) {
core.error(`Failed to remove ${cacheDir}`);
Expand Down

0 comments on commit 7437faa

Please sign in to comment.