Skip to content

Commit 2fa6769

Browse files
authored
fix: rename token option that causes error with new auth setup (#179)
* fix: remove token option that causes error with js setup * chore: bump version * fix: add GITHUB_TOKEN
1 parent da02755 commit 2fa6769

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: 'Nx set SHAs'
22
description: 'Derives SHAs for base and head for use in nx affected commands, optionally setting them as env variables for the current job'
33

44
inputs:
5-
token:
5+
gh-token:
66
description: 'The GitHub token used to perform git operations'
77
default: ${{ github.token }}
88
main-branch-name:

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64870,6 +64870,7 @@ const fs_1 = __nccwpck_require__(7147);
6487064870
const https_proxy_agent_1 = __nccwpck_require__(7219);
6487164871
const proxy_from_env_1 = __nccwpck_require__(3329);
6487264872
const { runId, repo: { repo, owner }, eventName, } = github.context;
64873+
process.env.GITHUB_TOKEN = core.getInput('gh-token');
6487364874
const mainBranchName = core.getInput('main-branch-name');
6487464875
const errorOnNoSuccessfulWorkflow = core.getBooleanInput('error-on-no-successful-workflow');
6487564876
const lastSuccessfulEvent = core.getInput('last-successful-event');

find-successful-workflow.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const {
1111
repo: { repo, owner },
1212
eventName,
1313
} = github.context;
14+
process.env.GITHUB_TOKEN = core.getInput('gh-token');
1415
const mainBranchName = core.getInput('main-branch-name');
1516
const errorOnNoSuccessfulWorkflow = core.getBooleanInput(
1617
'error-on-no-successful-workflow',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"version": "4.2.0",
3+
"version": "4.2.1",
44
"license": "MIT",
55
"description": "This package.json is here purely to control the version of the Action, in combination with https://github.com/JamesHenry/publish-shell-action",
66
"scripts": {

0 commit comments

Comments
 (0)