Disable database upload in test mode
This commit is contained in:
parent
b004bb45a8
commit
12243c759f
35 changed files with 12 additions and 63 deletions
4
lib/database-upload.js
generated
4
lib/database-upload.js
generated
|
|
@ -35,6 +35,10 @@ async function uploadDatabases(repositoryNwo, config, apiDetails, logger) {
|
|||
logger.debug("Database upload disabled in workflow. Skipping upload.");
|
||||
return;
|
||||
}
|
||||
if (util.isInTestMode()) {
|
||||
logger.debug("In test mode. Skipping database upload.");
|
||||
return;
|
||||
}
|
||||
// Do nothing when not running against github.com
|
||||
if (config.gitHubVersion.type !== util.GitHubVariant.DOTCOM &&
|
||||
config.gitHubVersion.type !== util.GitHubVariant.GHE_DOTCOM) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue