Skip to content

Commit 32c260d

Browse files
committed
ci: fixed commitlint
1 parent 0d0e6d3 commit 32c260d

1 file changed

Lines changed: 19 additions & 6 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,25 @@ jobs:
3636
shell: bash
3737
run: commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
3838

39+
- name: "Get Previous tag"
40+
id: previoustag
41+
uses: "WyriHaximus/github-action-get-previous-tag@v1"
42+
43+
- name: Conventional Changelog Action
44+
id: changelog
45+
if: github.ref_name == 'main'
46+
uses: TriPSs/conventional-changelog-action@v3
47+
with:
48+
github-token: ${{ github.token }}
49+
git-url: git.yusufali.ca
50+
tag-prefix: ""
51+
output-file: false
52+
skip-version-file: true
53+
skip-commit: true
54+
skip-ci: false
55+
skip-tag: ${{ github.ref_name != 'main' }}
56+
fallback-version: ${{ steps.previoustag.outputs.tag }}
57+
3958
- uses: actions/setup-python@v5
4059
with:
4160
python-version: 3.13
@@ -46,12 +65,6 @@ jobs:
4665
pip install -r requirements.txt
4766
pip install build twine
4867
49-
- name: Get Current Version
50-
id: previoustag
51-
uses: "WyriHaximus/github-action-get-previous-tag@v1"
52-
with:
53-
fallback: 0.0.1
54-
5568
- name: Setup Version
5669
env:
5770
TAG: ${{ steps.previoustag.outputs.tag }}

0 commit comments

Comments
 (0)