Skip to content

Add gitlab publish to pypi #9

Add gitlab publish to pypi

Add gitlab publish to pypi #9

Workflow file for this run

name: check-semver
on:
pull_request:
push:
branches: [main, dev]
jobs:
check-semver:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check diff
run: |
SEMVER_CHANGED=$(git diff origin/$GITHUB_BASE_REF...HEAD setup.py | grep "version=")
if [ -z "$SEMVER_CHANGED" ]; then exit 1; else exit 0; fi