mirror of
https://github.com/orhun/git-cliff-action.git
synced 2026-03-22 15:35:44 +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_OS: ${{ runner.os }}
|
||||||
RUNNER_ARCH: ${{ runner.arch }}
|
RUNNER_ARCH: ${{ runner.arch }}
|
||||||
VERSION: ${{ inputs.version }}
|
VERSION: ${{ inputs.version }}
|
||||||
GITHUB_API_TOKEN: ${{ inputs.github_token }}
|
GITHUB_API_TOKEN: ${{ env.GITHUB_TOKEN || inputs.github_token }}
|
||||||
|
|
||||||
- name: Run git-cliff
|
- name: Run git-cliff
|
||||||
id: run-git-cliff
|
id: run-git-cliff
|
||||||
shell: bash
|
shell: bash
|
||||||
run: ${GITHUB_ACTION_PATH}/run.sh --config=${{ inputs.config }} ${{ inputs.args }}
|
run: ${GITHUB_ACTION_PATH}/run.sh --config=${{ inputs.config }} ${{ inputs.args }}
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN || inputs.github_token }}
|
||||||
|
|
||||||
branding:
|
branding:
|
||||||
icon: "triangle"
|
icon: "triangle"
|
||||||
|
|||||||
Reference in New Issue
Block a user