mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 10:26:46 +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
|
@ -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