feat(action): add output for the latest version (#12)

* feat: output `version` of the latest release

* update readme
This commit is contained in:
Nicolas Hedger
2023-11-12 23:16:39 +01:00
committed by GitHub
parent 9158b31444
commit b7913b6646
5 changed files with 15 additions and 1 deletions

View File

@@ -16,8 +16,10 @@ jobs:
uses: ./
with:
config: fixtures/cliff.toml
args: --verbose --strip 'footer' --exclude-path '.github/**'
args: --verbose --strip 'footer' --exclude-path '.github/**' --tag 0.0.0
env:
OUTPUT: fixtures/CHANGELOG.md
- name: Print the changelog
run: cat "${{ steps.git-cliff.outputs.changelog }}"
- name: Print the version
run: echo "${{ steps.git-cliff.outputs.version }}"