Skip to content

Commit 69c30da

Browse files
Merge pull request #565 from github/robertbrignull/upload_ghes
Only attempt to upload on dotcom
2 parents 6fc1280 + b985a67 commit 69c30da

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

lib/analyze-action.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/analyze-action.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ async function uploadDatabases(
5858
apiDetails: GitHubApiDetails,
5959
logger: Logger
6060
): Promise<void> {
61+
// Do nothing when not running against github.com
62+
if (config.gitHubVersion.type !== util.GitHubVariant.DOTCOM) {
63+
logger.debug("Not running against github.com. Skipping upload.");
64+
return;
65+
}
66+
6167
if (!(await actionsUtil.isAnalyzingDefaultBranch())) {
6268
// We only want to upload a database if we are analyzing the default branch.
6369
logger.debug("Not analyzing default branch. Skipping upload.");

0 commit comments

Comments
 (0)