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:
Ludovic Ortega
2024-08-26 21:13:46 +02:00
committed by GitHub
parent ad11732637
commit 44415ff1bf
6 changed files with 74 additions and 43 deletions

View File

@@ -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