From e2e5df7529f4a7a27e6d553286dbe868cfbdaec1 Mon Sep 17 00:00:00 2001 From: Eddy Hintze Date: Sun, 4 Aug 2024 15:24:31 -0400 Subject: [PATCH] parse version for ci to use --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1709ff6..72a4e44 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,6 +27,6 @@ tag: - main script: - *write_permission - - export VERSION=$(echo $(python -c "import importlib.metadata as v; print(v.version('humblebundle-downloader'))")) + - export VERSION=$(grep -m 1 version pyproject.toml | tr -s ' ' | tr -d '"' | tr -d "'" | cut -d' ' -f3) - git tag -a $VERSION -m "Version created by gitlab-ci release" - git push origin $VERSION