Skip to content

Commit

Permalink
Update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
delasy committed Feb 1, 2025
1 parent e98e8d0 commit d93dc51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,14 @@ function run() {
return __awaiter(this, void 0, void 0, function* () {
const version = core.getInput('the-version', { required: true });
let cachedPath = tc.find('the', version);
if (cachedPath.length === 0) {
const shouldDownload = cachedPath.length === 0;
if (shouldDownload) {
cachedPath = yield download(version);
yield (0, exec_1.exec)('the offline');
}
core.addPath(cachedPath);
if (shouldDownload) {
yield (0, exec_1.exec)('the offline');
}
core.setOutput('the-version', utils.installedVersion());
});
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit d93dc51

Please sign in to comment.