Disable database upload in test mode

This commit is contained in:
Henry Mercer 2024-06-11 19:07:13 +01:00
parent b004bb45a8
commit 12243c759f
35 changed files with 12 additions and 63 deletions

View file

@ -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) {