Skip to content

Workflow file for this run

name: check-version
on:
push:
branches:
- update-ci
permissions:
contents: read
jobs:
check-version:
name: Check Version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: check version
run: |
RELEASE="$(git describe --tags --abbrev=0 --always)"
RELEASE="${RELEASE:1}"
VERSION=$(sed -nr 's/version = "([0-9\.]*)"/\1/p' pyproject.toml)
if [ "$RELEASE"=="$VERSION" ]; then
exit 1
else
echo "Version in pyproject.toml matches the latest tag"
fi