mirror of
https://github.com/orhun/git-cliff-action.git
synced 2026-03-22 15:35:44 +08:00
feat(action): allow configuring the github token and set it when it exists (#34)
* fix: set Bearer token in curl request when GITHUB_TOKEN is set Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: use a dedicated input variable to pass github token Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: use github_token inputs Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * Update README.md * Update README.md --------- Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
This commit is contained in:
@@ -13,6 +13,10 @@ inputs:
|
||||
description: "git-cliff arguments"
|
||||
required: false
|
||||
default: "-v"
|
||||
github_token:
|
||||
description: "GitHub API token"
|
||||
required: false
|
||||
default: "${{ github.token }}"
|
||||
outputs:
|
||||
changelog:
|
||||
description: "output file"
|
||||
@@ -33,7 +37,7 @@ runs:
|
||||
RUNNER_OS: ${{ runner.os }}
|
||||
RUNNER_ARCH: ${{ runner.arch }}
|
||||
VERSION: ${{ inputs.version }}
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
GITHUB_API_TOKEN: ${{ inputs.github_token }}
|
||||
|
||||
- name: Run git-cliff
|
||||
id: run-git-cliff
|
||||
|
||||
Reference in New Issue
Block a user