Skip to content

Commit 6158090

Browse files
authored
add token
1 parent e6338dd commit 6158090

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ inputs:
1616
fetch-depth:
1717
description: 'Number of commits to fetch'
1818
required: false
19+
token:
20+
description: 'GitHub token'
21+
required: false
22+
default: ${{ github.token }}
1923

2024
runs:
2125
using: 'composite'
@@ -24,7 +28,6 @@ runs:
2428
uses: actions/checkout@v4
2529
with:
2630
ref: ${{ inputs.ref }}
27-
fetch-depth: ${{ inputs.fetch-depth }}
2831
token: ${{ inputs.token }}
2932
sparse-checkout: |
3033
.github
@@ -154,4 +157,5 @@ runs:
154157
with:
155158
ref: ${{ inputs.ref }}
156159
fetch-depth: ${{ inputs.fetch-depth }}
160+
token: ${{ inputs.token }}
157161
sparse-checkout: ${{ steps.union.outputs.sparse-paths }}

0 commit comments

Comments
 (0)