forked from dfinity/response-verification
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 994 Bytes
/
update-changelog.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
name: Update changelog
on:
push:
branches:
- main
jobs:
update_changelog:
name: Update Changelog
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Commitzen
run: |
python -m pip install --upgrade pip
pip install -U Commitizen
- name: Check Commit Messages
run: cz check --rev-range c8ecbc19b8c4a482e55907d37554d66f2f2f9a8f..HEAD
- name: Update Changelog
run: cz changelog
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
title: 'Update changelog'
commit-message: 'chore: update changelog'
branch: 'chore/update-changelog'
branch-suffix: 'short-commit-hash'
add-paths: |
CHANGELOG.md