build: use basic auth to trigger CI if either a username OR password is provided
This commit is contained in:
parent
1e983e2a6e
commit
d1bd9afbbf
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ async function makeRequest ({ auth, url, headers, body, method }) {
|
|||
headers: clonedHeaders,
|
||||
body,
|
||||
method,
|
||||
auth: auth && auth.password ? `${auth.username}:${auth.password}` : undefined
|
||||
auth: auth && (auth.username || auth.password) ? `${auth.username}:${auth.password}` : undefined
|
||||
});
|
||||
if (response.statusCode < 200 || response.statusCode >= 300) {
|
||||
console.error('Error: ', `(status ${response.statusCode})`, response.body);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue