-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (31 loc) · 1018 Bytes
/
commitizen.yaml
File metadata and controls
34 lines (31 loc) · 1018 Bytes
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
on:
workflow_call:
secrets:
access-token:
description: "A token passed from the caller workflow"
required: true
outputs:
version:
description: "Computed repository version"
value: ${{ jobs.bump_version.outputs.version }}
jobs:
bump_version:
name: "Bump version and create changelog with commitizen"
runs-on: ubuntu-latest
outputs:
version: ${{ steps.cz.outputs.version }}
steps:
- name: Check out
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
token: "${{ secrets.access-token }}"
- id: cz
name: Create bump and changelog
uses: commitizen-tools/commitizen-action@338bbd841b75aaee6bf5340e1fa12f6ab58ff9ff # 0.27.1
with:
github_token: ${{ secrets.access-token }}
- name: Print Version
env:
CZ_VERSION: ${{ steps.cz.outputs.version }}
run: echo "Bumped to version ${CZ_VERSION}"