Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point.

I’m not an expert in composite actions, and the docs are a bit vague on this subject.

But if they work like regular workflows, adding env.GITHUB_TOKEN || would make the env var on the ‘action’ step to use the env var of the ‘job’ step if supplied. Or use the input token if empty.


branding:
icon: "triangle"
Expand Down