From d17a1ed0ea217ae69a2dbf9a1f85ebc88411d11f Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 20 Aug 2020 21:06:43 +0000 Subject: [PATCH] build(release): compiled action for 1.1.0 [skip ci] --- dist/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dist/index.js b/dist/index.js index 6a1e313..3110be3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -282,6 +282,7 @@ async function main() { try { const { installations, + repositories, popularRepositories, suspendedInstallations, } = await getAppStats({ @@ -289,6 +290,7 @@ async function main() { privateKey, }); core.setOutput("installations", installations); + core.setOutput("repositories", repositories); core.setOutput("popular_repositories", JSON.stringify(popularRepositories)); core.setOutput("suspended_installations", suspendedInstallations); console.log("done."); @@ -9606,6 +9608,7 @@ async function getAppStats({ id, privateKey }) { ); const accounts = []; + let installedRepositories = 0; let suspendedInstallations = 0; for (const installation of installations) { if (installation.suspended) { @@ -9643,11 +9646,13 @@ async function getAppStats({ id, privateKey }) { }, 0); accounts.push({ ...installation, stars }); + installedRepositories += repositories.length; } console.log(""); return { installations: accounts.length + suspendedInstallations, + repositories: installedRepositories, suspendedInstallations, popularRepositories: accounts .sort((a, b) => b.stars - a.stars)