From a4983cac404990c1e4d5ffdc095d75d11cf0b7b0 Mon Sep 17 00:00:00 2001 From: jakevc Date: Mon, 12 Feb 2024 18:22:17 -0500 Subject: [PATCH] ci: release action --- .github/workflows/{release-please.yaml => release.yaml} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename .github/workflows/{release-please.yaml => release.yaml} (90%) diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release.yaml similarity index 90% rename from .github/workflows/release-please.yaml rename to .github/workflows/release.yaml index eed406b..2e9dc78 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release.yaml @@ -35,10 +35,10 @@ jobs: - name: Check if tag matches the package version run: | - PKG_VERSION = $(poetry version -s) + PKG_VERSION=$(poetry version -s) TAG = ${GITHUB_REF#refs/tags/} - if [[ "v${PKG_VERSION}" != $TAG ]]; then - echo "Error: Tag ($TAG) does not match the package version (v${PKG_VERSION})." + if [[ "v$PKG_VERSION" != $TAG ]]; then + echo "Error: Tag ($TAG) does not match the package version (v$PKG_VERSION)." exit 1 - name: Install Dependencies using Poetry