mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 18:06:45 +00:00
try to run restore after the authentication
This commit is contained in:
parent
8687e45311
commit
6977c031ae
2 changed files with 8 additions and 4 deletions
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -59781,7 +59781,6 @@ function run() {
|
|||
if (!distribution) {
|
||||
throw new Error(`No supported distribution was found for input ${distributionName}`);
|
||||
}
|
||||
const restoreResult = cache ? cache_1.restore(cache) : Promise.resolve();
|
||||
const result = yield distribution.setupJava();
|
||||
core.info('');
|
||||
core.info('Java configuration:');
|
||||
|
@ -59791,7 +59790,10 @@ function run() {
|
|||
core.info('');
|
||||
const matchersPath = path.join(__dirname, '..', '..', '.github');
|
||||
core.info(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
|
||||
yield Promise.all([restoreResult, auth.configureAuthentication()]);
|
||||
yield auth.configureAuthentication();
|
||||
if (cache) {
|
||||
yield cache_1.restore(cache);
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
core.setFailed(error.message);
|
||||
|
|
|
@ -29,7 +29,6 @@ async function run() {
|
|||
throw new Error(`No supported distribution was found for input ${distributionName}`);
|
||||
}
|
||||
|
||||
const restoreResult = cache ? restore(cache) : Promise.resolve();
|
||||
const result = await distribution.setupJava();
|
||||
|
||||
core.info('');
|
||||
|
@ -42,7 +41,10 @@ async function run() {
|
|||
const matchersPath = path.join(__dirname, '..', '..', '.github');
|
||||
core.info(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
|
||||
|
||||
await Promise.all([restoreResult, auth.configureAuthentication()]);
|
||||
await auth.configureAuthentication();
|
||||
if (cache) {
|
||||
await restore(cache);
|
||||
}
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue