Skip to content

Commit bb580e0

Browse files
committed
logs for direct instead of input
1 parent 75a7109 commit bb580e0

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

setup-env/dist/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9332,9 +9332,10 @@ function wrappy (fn, cb) {
93329332

93339333
const core = __nccwpck_require__(2186);
93349334
const axios = __nccwpck_require__(8757);
9335+
const github = __nccwpck_require__(5438);
93359336
const InputValidator = __nccwpck_require__(4881);
93369337
const constants = __nccwpck_require__(1468);
9337-
const {BROWSERSTACK_TEMPLATE} = __nccwpck_require__(1468);
9338+
const { BROWSERSTACK_TEMPLATE} = __nccwpck_require__(1468);
93389339

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

9413+
const runIdDirect = process.env.GITHUB_RUN_ID;
9414+
const rerunAttemptDirect = process.env.GITHUB_RUN_ATTEMPT;
9415+
const repositoryDirect = github.context.repo.repo;
9416+
core.info(`Direct values are - runIdDirect: ${runIdDirect}, rerunAttemptDirect: ${rerunAttemptDirect}, repositoryDirect: ${repositoryDirect}`);
9417+
94129418
core.info(`Values of Bstack creds are: username - ${this.username}, accessKey - ${this.accessKey}`);
94139419
core.info(`Values of extractable vars are: rerunAttempt - ${this.rerunAttempt}, runId - ${this.runId}, repository - ${this.repository}`);
94149420
core.info(`Values of mandatory parms are: github_token - ${this.githubToken}, githubApp - ${this.githubApp}`);

setup-env/src/actionInput/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
const core = require('@actions/core');
22
const axios = require('axios');
3+
const github = require('@actions/github');
34
const InputValidator = require('./inputValidator');
45
const constants = require('../../config/constants');
5-
const {BROWSERSTACK_TEMPLATE} = require("../../config/constants");
6+
const { BROWSERSTACK_TEMPLATE} = require("../../config/constants");
67

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

81+
const runIdDirect = process.env.GITHUB_RUN_ID;
82+
const rerunAttemptDirect = process.env.GITHUB_RUN_ATTEMPT;
83+
const repositoryDirect = github.context.repo.repo;
84+
core.info(`Direct values are - runIdDirect: ${runIdDirect}, rerunAttemptDirect: ${rerunAttemptDirect}, repositoryDirect: ${repositoryDirect}`);
85+
8086
core.info(`Values of Bstack creds are: username - ${this.username}, accessKey - ${this.accessKey}`);
8187
core.info(`Values of extractable vars are: rerunAttempt - ${this.rerunAttempt}, runId - ${this.runId}, repository - ${this.repository}`);
8288
core.info(`Values of mandatory parms are: github_token - ${this.githubToken}, githubApp - ${this.githubApp}`);

0 commit comments

Comments
 (0)