Skip to content

Commit 6acb4e7

Browse files
committed
chore(ci): added support for checklog development into dev merge
1 parent 0b0a571 commit 6acb4e7

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/PR.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,23 @@ jobs:
3535
run: cargo build --verbose
3636
- name: Run tests
3737
run: cargo test --verbose
38+
39+
- uses: actions/checkout@v3
40+
with:
41+
fetch-depth: 0 # required for git-cliff
42+
43+
- name: Install git-cliff
44+
run: cargo install git-cliff
45+
46+
- name: Generate changelog
47+
run: git-cliff -o CHANGELOG.md
48+
49+
- name: Commit changelog
50+
run: |
51+
git config user.name "GitHub Actions"
52+
git config user.email "actions@github.com"
53+
git add CHANGELOG.md
54+
git commit -m "chore: update changelog for release" || echo "no changes"
55+
56+
- name: Push changelog
57+
run: git push origin main || echo "no changes"

0 commit comments

Comments
 (0)