diff --git a/action.yml b/action.yml index 3521e64..9286ea0 100644 --- a/action.yml +++ b/action.yml @@ -29,11 +29,17 @@ inputs: description: Mark the created GitHub release as 'latest' required: false default: true + token: + description: Token to use when accessing Github APIs + required: false + default: ${{ secrets.GITHUB_TOKEN }} runs: using: composite steps: - - run: | + - env: + CR_TOKEN: ${{ inputs.token }} + run: | owner=$(cut -d '/' -f 1 <<< "$GITHUB_REPOSITORY") repo=$(cut -d '/' -f 2 <<< "$GITHUB_REPOSITORY")