mirror of
https://github.com/orhun/git-cliff-action.git
synced 2026-03-24 08:25:45 +08:00
feat: add version input variable (#27)
* feat: add version input variable Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * chore(docs): readme typo Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: use bash script file instead of raw script * fix: variable interpolation * fix: GITHUB_TOKEN bash variable interpolation * fix: output version description * fix: VERSION variable interpolation * fix: add back "lastest" in version description * fix: add suggested changes Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com> * refactor: polish implementation * chore: bump version --------- Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
This commit is contained in:
28
action.yml
28
action.yml
@@ -1,6 +1,10 @@
|
||||
name: "git-cliff - Changelog Generator"
|
||||
description: "Generate changelog based on your Git history"
|
||||
inputs:
|
||||
version:
|
||||
description: "git-cliff version"
|
||||
required: false
|
||||
default: "latest"
|
||||
config:
|
||||
description: "config file location"
|
||||
required: false
|
||||
@@ -12,16 +16,30 @@ inputs:
|
||||
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: "docker"
|
||||
image: "Dockerfile"
|
||||
args:
|
||||
- --config=${{ inputs.config }}
|
||||
- ${{ inputs.args }}
|
||||
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_TOKEN: ${{ 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"
|
||||
|
||||
Reference in New Issue
Block a user