From c5cf000c1323a9687d37f436be11cc10ae9312e9 Mon Sep 17 00:00:00 2001 From: Giorgio Ciacchella Date: Tue, 29 Oct 2024 13:30:17 +0100 Subject: [PATCH] more version value extraction fixes also switch code block in release notes # installation to inline --- .github/workflows/publish-release.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 8266aae..9b908e7 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -63,14 +63,14 @@ jobs: run: | CAPELLA_VER_TEXT=$(grep CAPELLA_VER_LONG /tmp/docker-env-vars.txt) CAPELLA_VER_LONG=${CAPELLA_VER_TEXT#CAPELLA_VER_LONG=} - CAPELLA_VER_SHORT=${CAPELLA_VER_LONG%.[0-9]*} + CAPELLA_VER_SHORT=${CAPELLA_VER_LONG%%-[0-9A-z]*} echo "capella_ver=${CAPELLA_VER_SHORT}" >> ${GITHUB_ENV} PY4J_VER_TEXT=$(grep PY4J_VER_LONG /tmp/docker-env-vars.txt) PY4J_VER_LONG=${PY4J_VER_TEXT#PY4J_VER_LONG=} PY4J_VER_SHORT=${PY4J_VER_LONG%.[0-9]-[A-z]*} echo "py4j_ver=${PY4J_VER_SHORT}" >> ${GITHUB_ENV} EASE_VER_TEXT=$(grep EASE_CORE_VER_LONG /tmp/docker-env-vars.txt) - EASE_VER_LONG=${EASE_VER_TEXT#EASE_VER_LONG=} + EASE_VER_LONG=${EASE_VER_TEXT#EASE_CORE_VER_LONG=} EASE_VER_SHORT=${EASE_VER_LONG%.I[0-9]*} echo "ease_ver=${EASE_VER_SHORT}" >> ${GITHUB_ENV} PY4C_VER_TEXT=$(grep PY4C_VER_LONG /tmp/docker-env-vars.txt) @@ -101,8 +101,5 @@ jobs: ## Installation Get it from [DockerHub](https://hub.docker.com/r/chgio/python4capella-docker/tags): - - ```bash - docker pull chgio/python4capella-docker:${{ env.version_nov }} - ``` + `docker pull chgio/python4capella-docker:${{ env.version_nov }}` " \ No newline at end of file