Add workflow input to disable uploads
This commit is contained in:
parent
33ac512514
commit
f3cd5fa001
4 changed files with 14 additions and 1 deletions
4
lib/analyze-action.js
generated
4
lib/analyze-action.js
generated
|
|
@ -34,6 +34,10 @@ async function sendStatusReport(startedAt, stats, error) {
|
|||
await actionsUtil.sendStatusReport(statusReport);
|
||||
}
|
||||
async function uploadDatabases(repositoryNwo, config, apiDetails, logger) {
|
||||
if (actionsUtil.getRequiredInput("upload-database") !== "true") {
|
||||
logger.debug("Database upload disabled in workflow. Skipping upload.");
|
||||
return;
|
||||
}
|
||||
// Do nothing when not running against github.com
|
||||
if (config.gitHubVersion.type !== util.GitHubVariant.DOTCOM) {
|
||||
logger.debug("Not running against github.com. Skipping upload.");
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue