Skip to content

Commit

Permalink
Early exit from cache save (#26)
Browse files Browse the repository at this point in the history
- **Update deps**
- **Early exit in cache save**
- **Rebuild action**
  • Loading branch information
maciektr authored Sep 11, 2024
1 parent 202cd8c commit faa9d47
Show file tree
Hide file tree
Showing 8 changed files with 126,149 additions and 98,458 deletions.
111,256 changes: 62,750 additions & 48,506 deletions dist/cache-save/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cache-save/index.js.map

Large diffs are not rendered by default.

554 changes: 155 additions & 399 deletions dist/cache-save/licenses.txt

Large diffs are not rendered by default.

111,257 changes: 62,704 additions & 48,553 deletions dist/setup/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/setup/index.js.map

Large diffs are not rendered by default.

554 changes: 155 additions & 399 deletions dist/setup/licenses.txt

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions lib/cache-save.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,17 @@ async function saveCache() {
} else {
core.info(`Cache hit occurred, not saving cache.`);
}

// node will stay alive if any promises are not resolved,
// which is a possibility if HTTP requests are dangling
// due to retries or timeouts. We know that if we got here
// that all promises that we care about have successfully
// resolved, so simply exit with success.
process.exit(0);
} catch (e) {
core.error(e);
// vide supra
process.exit(1);
}
}

Expand Down
973 changes: 374 additions & 599 deletions package-lock.json

Large diffs are not rendered by default.

0 comments on commit faa9d47

Please sign in to comment.