Skip to content

Commit e291294

Browse files
committed
chore: Try using github.token
1 parent b8a65b0 commit e291294

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/actions/run-nx-target/action.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ inputs:
55
target:
66
description: The Nx target to run
77
required: true
8-
gh-token:
8+
github_token:
99
description: GitHub token
10-
required: true
10+
default: '${{ github.token }}'
1111

1212
runs:
1313
using: composite
@@ -38,11 +38,9 @@ runs:
3838
gh extension install actions/gh-actions-cache
3939
gh actions-cache delete "nx-cache" --confirm
4040
env:
41-
GH_TOKEN: ${{ inputs.gh-token }}
41+
GH_TOKEN: ${{ inputs.github_token }}
4242
- name: Save Nx cache
4343
uses: actions/cache/save@v4
4444
with:
4545
path: .nx
4646
key: nx-cache
47-
env:
48-
GH_TOKEN: ${{ inputs.gh-token }}

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
- uses: ./.github/actions/run-nx-target
2929
with:
3030
target: lint
31-
gh-token: ${{ secrets.GITHUB_TOKEN }}
3231
build:
3332
name: Build
3433
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)