Skip to content

ci(changelog): Add git-cliff to create changelog #4

ci(changelog): Add git-cliff to create changelog

ci(changelog): Add git-cliff to create changelog #4

Workflow file for this run

name: Create a changelog
on: pull_request
jobs:
changelog:
name: Generate changelog
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust (to use cargo)
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install typos CLI
run: cargo install typos-cli
- name: Generate a changelog
uses: orhun/git-cliff-action@v4
id: git-cliff
with:
config: cliff.toml
args: --verbose
env:
OUTPUT: CHANGELOG.md
- name: Print the changelog
run: cat "${{ steps.git-cliff.outputs.changelog }}"