mirror of
https://github.com/orhun/git-cliff-action.git
synced 2026-03-22 07:25:43 +08:00
fix(run): pass gh token (#61)
* fix(run): pass gh token Adds the github token as env var for the run.sh script * fix(action): use GITHUB_TOKEN env if set
This commit is contained in:
@@ -37,12 +37,14 @@ runs:
|
||||
RUNNER_OS: ${{ runner.os }}
|
||||
RUNNER_ARCH: ${{ runner.arch }}
|
||||
VERSION: ${{ inputs.version }}
|
||||
GITHUB_API_TOKEN: ${{ inputs.github_token }}
|
||||
GITHUB_API_TOKEN: ${{ env.GITHUB_TOKEN || inputs.github_token }}
|
||||
|
||||
- name: Run git-cliff
|
||||
id: run-git-cliff
|
||||
shell: bash
|
||||
run: ${GITHUB_ACTION_PATH}/run.sh --config=${{ inputs.config }} ${{ inputs.args }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN || inputs.github_token }}
|
||||
|
||||
branding:
|
||||
icon: "triangle"
|
||||
|
||||
Reference in New Issue
Block a user