mirror of
https://github.com/actions/setup-java.git
synced 2025-05-23 02:51:46 +00:00
run clean-up tasks in serial
This commit is contained in:
parent
f6a3b974ec
commit
5f3f74c689
3
dist/cleanup/index.js
vendored
3
dist/cleanup/index.js
vendored
@ -6230,7 +6230,8 @@ function ignoreError(promise) {
|
|||||||
}
|
}
|
||||||
function run() {
|
function run() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
yield Promise.all([removePrivateKeyFromKeychain(), ignoreError(saveCache())]);
|
yield removePrivateKeyFromKeychain();
|
||||||
|
yield ignoreError(saveCache());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.run = run;
|
exports.run = run;
|
||||||
|
@ -42,7 +42,8 @@ async function ignoreError(promise: Promise<void>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function run() {
|
export async function run() {
|
||||||
await Promise.all([removePrivateKeyFromKeychain(), ignoreError(saveCache())]);
|
await removePrivateKeyFromKeychain();
|
||||||
|
await ignoreError(saveCache());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
|
Loading…
Reference in New Issue
Block a user