Skip to content

Commit f246c75

Browse files
authored
Merge pull request #55 from morukele/dev
Dev
2 parents 0b0a571 + 1c83c0d commit f246c75

2 files changed

Lines changed: 23 additions & 1 deletion

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"

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ jobs:
2727
permissions:
2828
contents: write
2929
steps:
30-
- uses: actions/checkout@v3
30+
- name: Checkout branch
31+
uses: actions/checkout@v3
3132
with:
33+
token: ${{ secrets.GH_PAT }}
3234
fetch-depth: 0 # required for git-cliff
3335

3436
- name: Configure Git

0 commit comments

Comments
 (0)