Skip to content

Commit

Permalink
Removing additional logs
Browse files Browse the repository at this point in the history
  • Loading branch information
darpanLalwani committed Sep 23, 2024
1 parent d1f1896 commit 9eb1501
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
11 changes: 1 addition & 10 deletions setup-env/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9368,11 +9368,7 @@ class ActionInput {
this.rerunAttempt = process?.env?.GITHUB_RUN_ATTEMPT;
this.runId = process?.env?.GITHUB_RUN_ID;
this.repository = `${github?.context?.repo?.owner}/${github?.context?.repo?.repo}`;
// core.info(`Darpan the github object has - ${JSON.stringify(github.context)}`);
core.info(JSON.stringify(github.context, null, 2));
const rerunAttempt = github.context?.payload?.workflow_run?.rerun_attempt;
core.info(`Trying another re-run attempt: ${github.event.workflow_run.rerun_attempt}`);
core.info(`Darpan rerunAttempt - ${rerunAttempt}`);

} catch (e) {
throw Error(`Action input failed for reason: ${e.message}`);
}
Expand Down Expand Up @@ -9410,11 +9406,6 @@ class ActionInput {
core.info(`Use ${ENV_VARS.BROWSERSTACK_BUILD_NAME} environment variable for your build name capability in your tests\n`);
core.info(`The ENV_VARS hAS: ${JSON.stringify(ENV_VARS)}`);
core.info(`The process env - ${process.env.BROWSERSTACK_USERNAME}`);

core.info(`POC Part - GITHUB TOKEN with input params - ${this.githubToken || 'not set'}`);
core.info(`POC Part - GITHUB TOKEN with direct secret access - ${process.env.GITHUB_TOKEN || 'not set'}`);

core.info(`The new way of setting repository is: ${this.repository}`);
if (await this.checkIfBStackReRun()) {
await this.setBStackRerunEnvVars();
}
Expand Down
11 changes: 1 addition & 10 deletions setup-env/src/actionInput/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ class ActionInput {
this.rerunAttempt = process?.env?.GITHUB_RUN_ATTEMPT;
this.runId = process?.env?.GITHUB_RUN_ID;
this.repository = `${github?.context?.repo?.owner}/${github?.context?.repo?.repo}`;

Check failure on line 40 in setup-env/src/actionInput/index.js

View workflow job for this annotation

GitHub Actions / unit-tests (ubuntu-latest)

Block must not be padded by blank lines

Check failure on line 40 in setup-env/src/actionInput/index.js

View workflow job for this annotation

GitHub Actions / unit-tests (macos-latest)

Block must not be padded by blank lines
// core.info(`Darpan the github object has - ${JSON.stringify(github.context)}`);
core.info(JSON.stringify(github.context, null, 2));
const rerunAttempt = github.context?.payload?.workflow_run?.rerun_attempt;
core.info(`Trying another re-run attempt: ${github.event.workflow_run.rerun_attempt}`);
core.info(`Darpan rerunAttempt - ${rerunAttempt}`);

} catch (e) {
throw Error(`Action input failed for reason: ${e.message}`);
}
Expand Down Expand Up @@ -80,11 +76,6 @@ class ActionInput {
core.info(`Use ${ENV_VARS.BROWSERSTACK_BUILD_NAME} environment variable for your build name capability in your tests\n`);
core.info(`The ENV_VARS hAS: ${JSON.stringify(ENV_VARS)}`);
core.info(`The process env - ${process.env.BROWSERSTACK_USERNAME}`);

core.info(`POC Part - GITHUB TOKEN with input params - ${this.githubToken || 'not set'}`);
core.info(`POC Part - GITHUB TOKEN with direct secret access - ${process.env.GITHUB_TOKEN || 'not set'}`);

core.info(`The new way of setting repository is: ${this.repository}`);
if (await this.checkIfBStackReRun()) {
await this.setBStackRerunEnvVars();
}
Expand Down

0 comments on commit 9eb1501

Please sign in to comment.