diff --git a/.github/actions/javascript/checkAndroidStatus/checkAndroidStatus.ts b/.github/actions/javascript/checkAndroidStatus/checkAndroidStatus.ts index d5770a1d0cc5..86c74c0d62f2 100644 --- a/.github/actions/javascript/checkAndroidStatus/checkAndroidStatus.ts +++ b/.github/actions/javascript/checkAndroidStatus/checkAndroidStatus.ts @@ -66,13 +66,13 @@ function calculateRolloutPercentage(releaseDate: string): number { console.log('Days since release:', daysSinceRelease); if (daysSinceRelease <= 0) return 0; - if (daysSinceRelease === 1) return 1; - if (daysSinceRelease === 2) return 2; - if (daysSinceRelease === 3) return 5; - if (daysSinceRelease === 4) return 10; - if (daysSinceRelease === 5) return 20; - if (daysSinceRelease === 6) return 50; - return 100; + if (daysSinceRelease === 1) return 0.01; + if (daysSinceRelease === 2) return 0.02; + if (daysSinceRelease === 3) return 0.05; + if (daysSinceRelease === 4) return 0.10; + if (daysSinceRelease === 5) return 0.2; + if (daysSinceRelease === 6) return 0.5; + return 1; } checkAndroidStatus() diff --git a/.github/actions/javascript/checkAndroidStatus/index.js b/.github/actions/javascript/checkAndroidStatus/index.js index dcaf3611870a..05fc087a2875 100644 --- a/.github/actions/javascript/checkAndroidStatus/index.js +++ b/.github/actions/javascript/checkAndroidStatus/index.js @@ -736597,18 +736597,18 @@ function calculateRolloutPercentage(releaseDate) { if (daysSinceRelease <= 0) return 0; if (daysSinceRelease === 1) - return 1; + return 0.01; if (daysSinceRelease === 2) - return 2; + return 0.02; if (daysSinceRelease === 3) - return 5; + return 0.05; if (daysSinceRelease === 4) - return 10; + return 0.10; if (daysSinceRelease === 5) - return 20; + return 0.2; if (daysSinceRelease === 6) - return 50; - return 100; + return 0.5; + return 1; } checkAndroidStatus() .then(getLatestReleaseDate)