Skip to content

Commit b09ff97

Browse files
committed
Pass CR_TOKEN via input
1 parent db5211e commit b09ff97

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

action.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,17 @@ inputs:
2929
description: Mark the created GitHub release as 'latest'
3030
required: false
3131
default: true
32+
token:
33+
description: Token to use when accessing Github APIs
34+
required: false
35+
default: ${{ secrets.GITHUB_TOKEN }}
3236

3337
runs:
3438
using: composite
3539
steps:
36-
- run: |
40+
- env:
41+
CR_TOKEN: ${{ inputs.token }}
42+
run: |
3743
owner=$(cut -d '/' -f 1 <<< "$GITHUB_REPOSITORY")
3844
repo=$(cut -d '/' -f 2 <<< "$GITHUB_REPOSITORY")
3945

0 commit comments

Comments
 (0)