Skip to content

Commit

Permalink
Trying with process env
Browse files Browse the repository at this point in the history
  • Loading branch information
darpanLalwani committed Sep 24, 2024
1 parent 2cdf1fb commit 3b6feba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup-env/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9366,7 +9366,7 @@ class ActionInput {
this.rerunAttempt = process?.env?.GITHUB_RUN_ATTEMPT;
this.runId = process?.env?.GITHUB_RUN_ID;
this.repository = process?.env?.GITHUB_REPOSITORY;
this.githubToken = core.getInput(INPUT.GITHUB_TOKEN);
this.githubToken = process?.env?.GITHUB_TOKEN;
} catch (e) {
throw Error(`Action input failed for reason: ${e.message}`);
}
Expand Down
2 changes: 1 addition & 1 deletion setup-env/src/actionInput/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ActionInput {
this.rerunAttempt = process?.env?.GITHUB_RUN_ATTEMPT;
this.runId = process?.env?.GITHUB_RUN_ID;
this.repository = process?.env?.GITHUB_REPOSITORY;
this.githubToken = core.getInput(INPUT.GITHUB_TOKEN);
this.githubToken = process?.env?.GITHUB_TOKEN;
} catch (e) {
throw Error(`Action input failed for reason: ${e.message}`);
}
Expand Down

0 comments on commit 3b6feba

Please sign in to comment.