mirror of
https://github.com/orhun/git-cliff-action.git
synced 2026-03-21 23:15:44 +08:00
52 lines
1.4 KiB
YAML
52 lines
1.4 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.12.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: ${{ 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"
|
|
color: "green"
|