mirror of
https://github.com/orhun/git-cliff-action.git
synced 2026-03-22 07:25:43 +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:
@@ -6,6 +6,7 @@ This action generates a changelog based on your Git history using [git-cliff](ht
|
||||
|
||||
### Input variables
|
||||
|
||||
- `version`: `git-cliff` version to use (Default: `"latest"`)
|
||||
- `config`: Path of the configuration file. (Default: `"cliff.toml"`)
|
||||
- `args`: [Arguments](https://github.com/orhun/git-cliff#usage) to pass to git-cliff. (Default: `"-v"`)
|
||||
|
||||
@@ -49,9 +50,10 @@ jobs:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Generate a changelog
|
||||
uses: orhun/git-cliff-action@v3
|
||||
uses: orhun/git-cliff-action@v4
|
||||
id: git-cliff
|
||||
with:
|
||||
version: latest
|
||||
config: cliff.toml
|
||||
args: --verbose
|
||||
env:
|
||||
@@ -81,7 +83,7 @@ jobs:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Generate a changelog
|
||||
uses: orhun/git-cliff-action@v3
|
||||
uses: orhun/git-cliff-action@v4
|
||||
id: git-cliff
|
||||
with:
|
||||
config: cliff.toml
|
||||
@@ -130,7 +132,7 @@ jobs:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Generate a changelog
|
||||
uses: orhun/git-cliff-action@v3
|
||||
uses: orhun/git-cliff-action@v4
|
||||
with:
|
||||
config: cliff.toml
|
||||
args: --verbose
|
||||
|
||||
Reference in New Issue
Block a user