Skip to content

Commit

Permalink
OPS: Use new octue/check-semantic-version GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
cortadocodes committed Dec 20, 2022
1 parent ac4419e commit 223956a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 54 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,17 @@ name: python-ci
on: [push]

jobs:

check-semantic-version:
if: "!contains(github.event.head_commit.message, 'skipci')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
# Set fetch-depth to 0 to fetch all tags (necessary for git-mkver to determine the correct semantic version).
fetch-depth: 0
- uses: actions/setup-python@v2
- name: Install git-mkver
run: |
curl -L https://github.com/idc101/git-mkver/releases/download/v1.2.1/git-mkver-linux-amd64-1.2.1.tar.gz \
| tar xvz \
&& sudo mv git-mkver /usr/local/bin
- name: Install semantic version checker
run: pip install git+https://github.com/octue/conventional-commits
- name: Check version
run: check-semantic-version setup.py
- uses: octue/[email protected]
with:
path: setup.py
breaking_change_indicated_by: minor

run-tests:
if: "!contains(github.event.head_commit.message, 'skipci')"
Expand Down
41 changes: 0 additions & 41 deletions mkver.conf

This file was deleted.

0 comments on commit 223956a

Please sign in to comment.