From 9278c6f3234771982df0e7bdf1374a1957ce0e8d Mon Sep 17 00:00:00 2001 From: Thomas Rowlands <41603761+Thomas-Rowlands@users.noreply.github.com> Date: Mon, 9 Dec 2024 11:41:25 +0000 Subject: [PATCH] Update release.yml Updated to reflect Adrian's requested changes --- .github/workflows/release.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 96ed971..4b55510 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,18 +27,7 @@ jobs: # Check package version matches release tag - name: Check package version matches tag run: | - poetry install - pkgver=$(python -c " - import autocorpus - try: - from importlib.metadata import version - print(version('autocorpus'), end='') - except importlib.metadata.PackageNotFoundError: - print(autocorpus.__dict__.get('__version__', '0.0.0'), end='') - ") - echo "Detected package version: $pkgver" - # Ensure tag name matches version - test v$pkgver = ${{ github.ref_name }} + pkgver=$(poetry run python -c "import autocorpus; print(autocorpus.__version__, end='')") # Build package with Poetry