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:
Gabriel Torcat
2025-09-01 18:25:36 +02:00
committed by GitHub
parent 3948e88ea7
commit 82629b39d0

View File

@@ -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"