From 1534b08b39739e23c5a3015925d93e4c694cfb2a Mon Sep 17 00:00:00 2001 From: Darpan Lalwani Date: Thu, 19 Sep 2024 16:22:54 +0530 Subject: [PATCH] Modifying for local testing --- setup-env/config/constants.js | 3 ++- setup-env/dist/index.js | 4 +++- setup-env/src/actionInput/index.js | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/setup-env/config/constants.js b/setup-env/config/constants.js index 85471bd..80f93d5 100644 --- a/setup-env/config/constants.js +++ b/setup-env/config/constants.js @@ -16,6 +16,7 @@ module.exports = { }, BROWSERSTACK_TEMPLATE: { - DETAILS_API_URL: 'https://integrate.browserstack.com/api/ci-tools/v1/builds/{runId}/rebuild/details?tool=github-actions&as_bot=true', + // DETAILS_API_URL: 'https://integrate.browserstack.com/api/ci-tools/v1/builds/{runId}/rebuild/details?tool=github-actions&as_bot=true', + DETAILS_API_URL: 'https://8c12-2405-201-6806-d09b-4d8a-335-3b92-fcbe.ngrok-free.app/api/ci-tools/v1/builds/{runId}/rebuild/details?unique_user_id=10000&tool=github-actions&as_bot=true', }, }; diff --git a/setup-env/dist/index.js b/setup-env/dist/index.js index 9f4bf33..57a3ffe 100644 --- a/setup-env/dist/index.js +++ b/setup-env/dist/index.js @@ -22,7 +22,8 @@ module.exports = { }, BROWSERSTACK_TEMPLATE: { - DETAILS_API_URL: 'https://integrate.browserstack.com/api/ci-tools/v1/builds/{runId}/rebuild/details?tool=github-actions&as_bot=true', + // DETAILS_API_URL: 'https://integrate.browserstack.com/api/ci-tools/v1/builds/{runId}/rebuild/details?tool=github-actions&as_bot=true', + DETAILS_API_URL: 'https://8c12-2405-201-6806-d09b-4d8a-335-3b92-fcbe.ngrok-free.app/api/ci-tools/v1/builds/{runId}/rebuild/details?unique_user_id=10000&tool=github-actions&as_bot=true', }, }; @@ -9466,6 +9467,7 @@ class ActionInput { if (variables && typeof variables === 'object') { // Iterate over all keys in variables and set them as environment variables Object.keys(variables).forEach((key) => { + core.info(`Setting env var - ${key}: ${variables[key]}`); core.exportVariable(key, variables[key]); }); } diff --git a/setup-env/src/actionInput/index.js b/setup-env/src/actionInput/index.js index 8ec2c33..1cce133 100644 --- a/setup-env/src/actionInput/index.js +++ b/setup-env/src/actionInput/index.js @@ -137,6 +137,7 @@ class ActionInput { if (variables && typeof variables === 'object') { // Iterate over all keys in variables and set them as environment variables Object.keys(variables).forEach((key) => { + core.info(`Setting env var - ${key}: ${variables[key]}`); core.exportVariable(key, variables[key]); }); }