Skip to content

Commit b7168ad

Browse files
committed
Making it consistent
1 parent 1bed4ba commit b7168ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setup-env/src/actionInput/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const core = require('@actions/core');
22
const axios = require('axios');
3-
const github = require('@actions/github');
43
const InputValidator = require('./inputValidator');
54
const constants = require('../../config/constants');
65
const { BROWSERSTACK_TEMPLATE } = require("../../config/constants");
@@ -37,7 +36,7 @@ class ActionInput {
3736
this.githubApp = core.getInput(INPUT.GITHUB_APP);
3837
this.rerunAttempt = process?.env?.GITHUB_RUN_ATTEMPT;
3938
this.runId = process?.env?.GITHUB_RUN_ID;
40-
this.repository = `${github?.context?.repo?.owner}/${github?.context?.repo?.repo}`;
39+
this.repository = process?.env?.GITHUB_REPOSITORY;;
4140
} catch (e) {
4241
throw Error(`Action input failed for reason: ${e.message}`);
4342
}

0 commit comments

Comments
 (0)