Skip to content

Commit

Permalink
Rerun Support added
Browse files Browse the repository at this point in the history
  • Loading branch information
darpanLalwani committed Sep 20, 2024
1 parent 5ad4438 commit 90ff21a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ inputs:
github-app:
description: 'BrowserStack Github App'
required: false
default: 'browserstack-auth[bot]'
default: 'browserstack[bot]'
runs:
using: 'node20'
main: 'dist/index.js'
3 changes: 1 addition & 2 deletions setup-env/config/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ 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://8c12-2405-201-6806-d09b-4d8a-335-3b92-fcbe.ngrok-free.app/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',
},
};
7 changes: 3 additions & 4 deletions setup-env/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,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://8c12-2405-201-6806-d09b-4d8a-335-3b92-fcbe.ngrok-free.app/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',
},
};

Expand Down Expand Up @@ -9621,13 +9620,13 @@ class InputValidator {
* @throws {Error} If the input is not a valid non-empty string
*/
static validateGithubAppName(githubAppName) {
if (githubAppName && githubAppName.toLowerCase() !== 'browserstack-auth[bot]') {
if (githubAppName && githubAppName.toLowerCase() !== 'browserstack[bot]') {
if (typeof githubAppName === 'string' && githubAppName.trim().length > 0) {
return githubAppName;
}
throw new Error("Invalid input for 'github-app'. Must be a valid string.");
}
return 'browserstack-auth[bot]';
return 'browserstack[bot]';
}
}

Expand Down
4 changes: 2 additions & 2 deletions setup-env/src/actionInput/inputValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ class InputValidator {
* @throws {Error} If the input is not a valid non-empty string
*/
static validateGithubAppName(githubAppName) {
if (githubAppName && githubAppName.toLowerCase() !== 'browserstack-auth[bot]') {
if (githubAppName && githubAppName.toLowerCase() !== 'browserstack[bot]') {
if (typeof githubAppName === 'string' && githubAppName.trim().length > 0) {
return githubAppName;
}
throw new Error("Invalid input for 'github-app'. Must be a valid string.");
}
return 'browserstack-auth[bot]';
return 'browserstack[bot]';
}
}

Expand Down

0 comments on commit 90ff21a

Please sign in to comment.