File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments