We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86e8938 commit 1b04170Copy full SHA for 1b04170
1 file changed
src/setup-java.ts
@@ -15,13 +15,16 @@ async function run() {
15
16
await installer.getJava(version, arch, jdkFile, javaPackage);
17
18
+ const matchersPath = path.join(__dirname, '..', '.github');
19
+ console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
20
+
21
const username = core.getInput('username', {required: false});
22
const password = core.getInput('password', {required: false});
23
- await auth.configAuthentication(username, password);
24
+ if (username && password) {
25
+ await auth.configAuthentication(username, password);
26
+ }
27
- const matchersPath = path.join(__dirname, '..', '.github');
- console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
28
} catch (error) {
29
core.setFailed(error.message);
30
}
0 commit comments