From 19452d85124373e9070da6cc649bbc64d460e081 Mon Sep 17 00:00:00 2001
From: Janis Streib <janis.streib@kit.edu>
Date: Wed, 6 Mar 2024 13:22:49 +0100
Subject: [PATCH] FIXUP: correct use of export

---
 .gitlab-ci.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3d89b04..6c31cbf 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -37,9 +37,9 @@ build:
   script:
     - mkdir -p latest
     - "(curl -LsS --header 'PRIVATE-TOKEN: ${CI_JOB_TOKEN}' https://${CI_SERVER_HOST}/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/-/jobs/artifacts/${CI_COMMIT_BRANCH}/download?job=build | bsdtar -xf - -C latest) || true"
-    - test -d latest/dist && export LATEST_UTIL_VERSION $(cd latest/dist; ls *.whl | sed -r 's/.*\+([a-z0-9.]+)-.*/\1/g')
-    - test -d latest/dist && export LATEST_API_VERSION $(cd latest/dist; ls *.whl | sed -r 's/netdb_client-([0-9]+\.[0-9]+\.[0-9]+).*/\1/g')
-    - test -d latest/dist && export POST_NUM $(cd latest/dist; ls *.whl | sed -r 's/.*\.post([0-9]+).*/\1/g')
+    - test -d latest/dist && export LATEST_UTIL_VERSION=$(cd latest/dist; ls *.whl | sed -r 's/.*\+([a-z0-9.]+)-.*/\1/g')
+    - test -d latest/dist && export LATEST_API_VERSION=$(cd latest/dist; ls *.whl | sed -r 's/netdb_client-([0-9]+\.[0-9]+\.[0-9]+).*/\1/g')
+    - test -d latest/dist && export POST_NUM=$(cd latest/dist; ls *.whl | sed -r 's/.*\.post([0-9]+).*/\1/g')
     - python3 -m build
     - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python3 -m twine upload --verbose --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi --skip-existing dist/*
   artifacts:
-- 
GitLab