-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.09 KB
/
Copy pathbump.yml
File metadata and controls
39 lines (35 loc) · 1.09 KB
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
name: Check and bump
on:
push:
branches:
- "**"
jobs:
bump-version:
runs-on: ubuntu-latest
if: |
github.event_name == 'push' &&
github.ref_name == 'main' &&
github.ref_type == 'branch' &&
!startsWith(github.event.head_commit.message, '🔖 bump(release):') &&
!startsWith(github.event.head_commit.message, 'bump(release):')
name: "Bump version and create changelog with commitizen"
steps:
- name: Checkout
if: github.actor == 'dependabot[bot]'
uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ github.token }}
submodules: recursive
- name: Checkout
if: github.actor != 'dependabot[bot]'
uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
submodules: recursive
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
extra_requirements: "cz-conventional-gitmoji"