Files
git-cliff-action/action.yml
Ludovic Ortega 143d9d4b8e 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>
2024-09-17 23:44:33 +03:00

50 lines
1.3 KiB
YAML

name: "git-cliff - Changelog Generator"
description: "Generate changelog based on your Git history"
inputs:
version:
description: "git-cliff version"
required: false
default: "v2.5.0"
config:
description: "config file location"
required: false
default: "cliff.toml"
args:
description: "git-cliff arguments"
required: false
default: "-v"
github_token:
description: "GitHub API token"
required: false
default: "${{ github.token }}"
outputs:
changelog:
description: "output file"
value: ${{ steps.run-git-cliff.outputs.changelog }}
content:
description: "content of the changelog"
value: ${{ steps.run-git-cliff.outputs.content }}
version:
description: "version of the latest release"
value: ${{ steps.run-git-cliff.outputs.version }}
runs:
using: "composite"
steps:
- name: Download git-cliff
shell: bash
run: ${{ github.action_path }}/install.sh
env:
RUNNER_OS: ${{ runner.os }}
RUNNER_ARCH: ${{ runner.arch }}
VERSION: ${{ inputs.version }}
GITHUB_API_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 }}
branding:
icon: "triangle"
color: "green"