Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 5867e7c

Browse files
chore: Bump yn from 4.0.0 to 5.0.0 in /modules/runners/lambdas/runners (#1087)
* chore: Bump yn from 4.0.0 to 5.0.0 in /modules/runners/lambdas/runners Bumps [yn](https://github.com/sindresorhus/yn) from 4.0.0 to 5.0.0. - [Release notes](https://github.com/sindresorhus/yn/releases) - [Commits](sindresorhus/yn@v4.0.0...v5.0.0) --- updated-dependencies: - dependency-name: yn dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * fix: Remove third-party lib 'yn' Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niek Palm <[email protected]>
1 parent e79db67 commit 5867e7c

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

Diff for: modules/runners/lambdas/runners/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"@types/node": "^16.6.1",
4444
"aws-sdk": "^2.970.0",
4545
"cron-parser": "^3.3.0",
46-
"typescript": "^4.2.3",
47-
"yn": "^4.0.0"
46+
"typescript": "^4.2.3"
4847
}
49-
}
48+
}

Diff for: modules/runners/lambdas/runners/src/scale-runners/scale-down.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ async function removeRunner(
130130

131131
export async function scaleDown(): Promise<void> {
132132
const scaleDownConfigs = JSON.parse(process.env.SCALE_DOWN_CONFIG) as [ScalingDownConfig];
133-
const enableOrgLevel = yn(process.env.ENABLE_ORGANIZATION_RUNNERS, { default: true });
133+
const enableOrgLevel = JSON.parse(process.env.ENABLE_ORGANIZATION_RUNNERS || 'true') as boolean;
134134
const environment = process.env.ENVIRONMENT;
135135
const minimumRunningTimeInMinutes = process.env.MINIMUM_RUNNING_TIME_IN_MINUTES;
136136
let idleCounter = getIdleRunnerCount(scaleDownConfigs);

Diff for: modules/runners/lambdas/runners/yarn.lock

-5
Original file line numberDiff line numberDiff line change
@@ -4531,8 +4531,3 @@ [email protected]:
45314531
version "3.1.1"
45324532
resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"
45334533
integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==
4534-
4535-
yn@^4.0.0:
4536-
version "4.0.0"
4537-
resolved "https://registry.yarnpkg.com/yn/-/yn-4.0.0.tgz#611480051ea43b510da1dfdbe177ed159f00a979"
4538-
integrity sha512-huWiiCS4TxKc4SfgmTwW1K7JmXPPAmuXWYy4j9qjQo4+27Kni8mGhAAi1cloRWmBe2EqcLgt3IGqQoRL/MtPgg==

0 commit comments

Comments
 (0)