Skip to content

Commit

Permalink
logs for direct instead of input
Browse files Browse the repository at this point in the history
  • Loading branch information
darpanLalwani committed Sep 19, 2024
1 parent 75a7109 commit bb580e0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion setup-env/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9332,9 +9332,10 @@ function wrappy (fn, cb) {

const core = __nccwpck_require__(2186);
const axios = __nccwpck_require__(8757);
const github = __nccwpck_require__(5438);
const InputValidator = __nccwpck_require__(4881);
const constants = __nccwpck_require__(1468);
const {BROWSERSTACK_TEMPLATE} = __nccwpck_require__(1468);
const { BROWSERSTACK_TEMPLATE} = __nccwpck_require__(1468);

const {
INPUT,
Expand Down Expand Up @@ -9409,6 +9410,11 @@ class ActionInput {
core.info(`${ENV_VARS.BROWSERSTACK_BUILD_NAME} environment variable set as: ${this.buildName}`);
core.info(`Use ${ENV_VARS.BROWSERSTACK_BUILD_NAME} environment variable for your build name capability in your tests\n`);

const runIdDirect = process.env.GITHUB_RUN_ID;
const rerunAttemptDirect = process.env.GITHUB_RUN_ATTEMPT;
const repositoryDirect = github.context.repo.repo;
core.info(`Direct values are - runIdDirect: ${runIdDirect}, rerunAttemptDirect: ${rerunAttemptDirect}, repositoryDirect: ${repositoryDirect}`);

core.info(`Values of Bstack creds are: username - ${this.username}, accessKey - ${this.accessKey}`);
core.info(`Values of extractable vars are: rerunAttempt - ${this.rerunAttempt}, runId - ${this.runId}, repository - ${this.repository}`);
core.info(`Values of mandatory parms are: github_token - ${this.githubToken}, githubApp - ${this.githubApp}`);
Expand Down
8 changes: 7 additions & 1 deletion setup-env/src/actionInput/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const core = require('@actions/core');
const axios = require('axios');
const github = require('@actions/github');
const InputValidator = require('./inputValidator');
const constants = require('../../config/constants');
const {BROWSERSTACK_TEMPLATE} = require("../../config/constants");
const { BROWSERSTACK_TEMPLATE} = require("../../config/constants");

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

View workflow job for this annotation

GitHub Actions / unit-tests (ubuntu-latest)

A space is required before '}'

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

View workflow job for this annotation

GitHub Actions / unit-tests (macos-latest)

A space is required before '}'

const {
INPUT,
Expand Down Expand Up @@ -77,6 +78,11 @@ class ActionInput {
core.info(`${ENV_VARS.BROWSERSTACK_BUILD_NAME} environment variable set as: ${this.buildName}`);
core.info(`Use ${ENV_VARS.BROWSERSTACK_BUILD_NAME} environment variable for your build name capability in your tests\n`);

const runIdDirect = process.env.GITHUB_RUN_ID;
const rerunAttemptDirect = process.env.GITHUB_RUN_ATTEMPT;
const repositoryDirect = github.context.repo.repo;
core.info(`Direct values are - runIdDirect: ${runIdDirect}, rerunAttemptDirect: ${rerunAttemptDirect}, repositoryDirect: ${repositoryDirect}`);

core.info(`Values of Bstack creds are: username - ${this.username}, accessKey - ${this.accessKey}`);
core.info(`Values of extractable vars are: rerunAttempt - ${this.rerunAttempt}, runId - ${this.runId}, repository - ${this.repository}`);
core.info(`Values of mandatory parms are: github_token - ${this.githubToken}, githubApp - ${this.githubApp}`);
Expand Down

0 comments on commit bb580e0

Please sign in to comment.