@@ -25586,10 +25586,9 @@ const getVersions = async () => {
2558625586 // Below we will replace the matching major version with this more specific version
2558725587 // This will ensure that the unit tests run on the same version that will be shipped
2558825588 const installedNode = process.versions.node;
25589- console.log("disabled 23:", process.env.NODE_DISABLE_VERSION_23);
25590- // Support disabling certain versions via an environment variable
25591- // They will be named like `NODE_DISABLE_VERSION_18` and will be set to `true`
25592- const disabledVersions = Object.keys(process.env).filter((env) => env.startsWith('NODE_DISABLE_VERSION_')).map((env) => env.replace('NODE_DISABLE_VERSION_', ''));
25589+ // Comma separated list of major versions to disable
25590+ // For example: Set `NODE_DISABLE_VERSIONS` to `18,23`
25591+ const disableVersions = (0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput)('nodeDisableVersions').split(',');
2559325592 const today = new Date();
2559425593 // Build an array of versions that the current date is between the start and end dates
2559525594 const versions = Object.keys(json)
@@ -25599,9 +25598,9 @@ const getVersions = async () => {
2559925598 return today >= startDate && today <= endDate;
2560025599 })
2560125600 .map((version) => version.replace('v', ''))
25602- // Remove versions that are disabled via env vars
25601+ // Remove versions that are disabled via input (via env var)
2560325602 .filter((version) => {
25604- if (disabledVersions .includes(version)) {
25603+ if (disableVersions .includes(version)) {
2560525604 (0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.notice)(`Node version ${version} is disabled via env var`);
2560625605 return false;
2560725606 }
0 commit comments