Files
git-cliff-action/action.yml
Matt Loberg 9b8dd77b6b feat(action): add an output for the changelog content (#4)
* feat: add an output for the changelog content

::set-output is
[deprecated](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/)
in favor of [environment
files](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#environment-files).
This has better multiline support, so add the contents of the changelog as an output for cases where
you are creating a GitHub release.

BREAKING CHANGE: self-hosted runners will need to be at 2.297.0 or greater

* fix: update multiline output usage

https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings

* docs(readme): add content as output

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2022-12-01 21:13:59 +01:00

26 lines
558 B
YAML

name: "git-cliff - Changelog Generator"
description: "Generate changelog based on your Git history"
inputs:
config:
description: "config file location"
required: false
default: "cliff.toml"
args:
description: "git-cliff arguments"
required: false
default: "-v"
outputs:
changelog:
description: "output file"
content:
description: "content of the changelog"
runs:
using: "docker"
image: "Dockerfile"
args:
- --config=${{ inputs.config }}
- ${{ inputs.args }}
branding:
icon: "triangle"
color: "green"