-
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 847 Bytes
/
cliff.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Generate Changelog
on:
release:
types: [published]
branches: [master]
permissions:
contents: write
env:
GH_TOKEN: ${{ github.token }}
jobs:
generate_changelog:
runs-on: ubuntu-latest
name: Generate Changelog
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Generate a changelog
uses: orhun/git-cliff-action@v3
with:
config: cliff.toml
args: --verbose --latest
env:
OUTPUT: CHANGELOG.md
GITHUB_REPO: ${{ github.repository }}
- name: Add changelog to release
run: gh release edit ${{ github.event.release.tag_name }} -F CHANGELOG.md