Skip to content

Commit

Permalink
Logs for seeing whats in github
Browse files Browse the repository at this point in the history
  • Loading branch information
darpanLalwani committed Sep 23, 2024
1 parent dfb9032 commit 2b480ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion setup-env/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9333,6 +9333,7 @@ const axios = __nccwpck_require__(8757);
const InputValidator = __nccwpck_require__(4881);
const constants = __nccwpck_require__(1468);
const { BROWSERSTACK_INTEGRATIONS } = __nccwpck_require__(1468);
const github = __nccwpck_require__(5438);

const {
INPUT,
Expand Down Expand Up @@ -9366,7 +9367,8 @@ class ActionInput {
this.githubApp = core.getInput(INPUT.GITHUB_APP);
this.rerunAttempt = process?.env?.GITHUB_RUN_ATTEMPT;
this.runId = process?.env?.GITHUB_RUN_ID;
this.repository = process?.env?.GITHUB_REPOSITORY;
this.repository = `${github?.context?.repo?.owner}/${github?.context?.repo?.repo}`;
core.info(`Darpan the github object has - ${JSON.stringify(github)}`);
} catch (e) {
throw Error(`Action input failed for reason: ${e.message}`);
}
Expand Down
4 changes: 3 additions & 1 deletion setup-env/src/actionInput/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const axios = require('axios');
const InputValidator = require('./inputValidator');
const constants = require('../../config/constants');
const { BROWSERSTACK_INTEGRATIONS } = require("../../config/constants");
const github = require("@actions/github");

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

View workflow job for this annotation

GitHub Actions / unit-tests (ubuntu-latest)

`@actions/github` import should occur before import of `./inputValidator`

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

View workflow job for this annotation

GitHub Actions / unit-tests (macos-latest)

`@actions/github` import should occur before import of `./inputValidator`

const {
INPUT,
Expand Down Expand Up @@ -36,7 +37,8 @@ class ActionInput {
this.githubApp = core.getInput(INPUT.GITHUB_APP);
this.rerunAttempt = process?.env?.GITHUB_RUN_ATTEMPT;
this.runId = process?.env?.GITHUB_RUN_ID;
this.repository = process?.env?.GITHUB_REPOSITORY;
this.repository = `${github?.context?.repo?.owner}/${github?.context?.repo?.repo}`;
core.info(`Darpan the github object has - ${JSON.stringify(github)}`);
} catch (e) {
throw Error(`Action input failed for reason: ${e.message}`);
}
Expand Down

0 comments on commit 2b480ca

Please sign in to comment.