From 5d989ae6c813ebb3c2c32608ca1da58344489a6f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 09:45:30 +0000 Subject: [PATCH 1/3] Initial plan From 25028a8808400dd268a7466debb466772b5fc3ea Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 09:50:25 +0000 Subject: [PATCH 2/3] fix: export TAG_VERSION in release workflow version check Agent-Logs-Url: https://github.com/precimed/container_template/sessions/49f88422-d643-4770-a7ad-2285fcf8907e Co-authored-by: espenhgn <2492641+espenhgn@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- tests/test_release_workflow.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2dfb069..fff5b3d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: - name: Check version matches tag run: | - TAG_VERSION="${GITHUB_REF_NAME#v}" + export TAG_VERSION="${GITHUB_REF_NAME#v}" python - <<'PY' import pathlib import os diff --git a/tests/test_release_workflow.py b/tests/test_release_workflow.py index f1956f6..d30a706 100644 --- a/tests/test_release_workflow.py +++ b/tests/test_release_workflow.py @@ -24,6 +24,7 @@ def test_release_workflow_checks_tag_commit_is_on_main(): def test_release_workflow_checks_version_and_generates_notes(): content = WORKFLOW_FILE.read_text() + assert 'export TAG_VERSION="${GITHUB_REF_NAME#v}"' in content assert 'version/version.py' in content assert 'VERSION' in content assert 'softprops/action-gh-release@v2' in content From 53a1514f6fec5094c51eced1afd3e2f75e9e6e91 Mon Sep 17 00:00:00 2001 From: Espen Hagen <2492641+espenhgn@users.noreply.github.com> Date: Tue, 21 Apr 2026 12:22:36 +0200 Subject: [PATCH 3/3] Increment patch version from 1 to 2 --- version/version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version/version.py b/version/version.py index b022333..576e284 100644 --- a/version/version.py +++ b/version/version.py @@ -2,10 +2,10 @@ _MINOR = "1" # On main and in a nightly release the patch should be one ahead of the last # released build. -_PATCH = "1" +_PATCH = "2" # This is mainly for nightly builds which have the suffix ".dev$DATE". See # https://semver.org/#is-v123-a-semantic-version for the semantics. _SUFFIX = "" VERSION_SHORT = "{0}.{1}".format(_MAJOR, _MINOR) -VERSION = "{0}.{1}.{2}{3}".format(_MAJOR, _MINOR, _PATCH, _SUFFIX) \ No newline at end of file +VERSION = "{0}.{1}.{2}{3}".format(_MAJOR, _MINOR, _PATCH, _SUFFIX)