From 70ba772d0d5716c220c57172c198293de8b56b16 Mon Sep 17 00:00:00 2001 From: Michael Puehringer Date: Tue, 23 Dec 2025 21:43:20 +0100 Subject: [PATCH 1/4] feat: use python-version-file --- .github/actions/build-node-python/action.yml | 3 ++- .github/workflows/build-docker-artifacts-trigger-push.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/actions/build-node-python/action.yml b/.github/actions/build-node-python/action.yml index f5ae5da9..3014cfc8 100644 --- a/.github/actions/build-node-python/action.yml +++ b/.github/actions/build-node-python/action.yml @@ -129,7 +129,8 @@ runs: uses: actions/setup-python@v6 if: inputs.enable_python == 'true' with: - python-version: ${{ inputs.python_version || '3.10' }} + python-version-file: pyproject.toml + python-version: ${{ inputs.python_version || null }} # cache: ${{ inputs.enable_python_cache == 'true' && 'pip' || null }} Disable cache as uv is probably faster anyways: https://github.com/actions/setup-python/issues/822 - name: Install additional python requirements if: inputs.enable_python == 'true' diff --git a/.github/workflows/build-docker-artifacts-trigger-push.yml b/.github/workflows/build-docker-artifacts-trigger-push.yml index 169187aa..168e05e3 100644 --- a/.github/workflows/build-docker-artifacts-trigger-push.yml +++ b/.github/workflows/build-docker-artifacts-trigger-push.yml @@ -82,7 +82,7 @@ jobs: customer: c, customer_json: JSON.stringify(config.push[c]), image_tag: imageTagAfterRetag, - })); + })).filter((c) => c.customer_json); console.log(result); return result; env: From 4328c41ef2de83c3eacaa8b37697e846001ebdb3 Mon Sep 17 00:00:00 2001 From: Michael Puehringer Date: Tue, 23 Dec 2025 21:44:28 +0100 Subject: [PATCH 2/4] Use mp/python_version_file --- .github/workflows/build-node-python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-node-python.yml b/.github/workflows/build-node-python.yml index 5d6f453d..8abc5daa 100644 --- a/.github/workflows/build-node-python.yml +++ b/.github/workflows/build-node-python.yml @@ -119,7 +119,7 @@ on: required: false env: - WORKFLOW_BRANCH: "main" + WORKFLOW_BRANCH: "mp/python_version_file" POSTGRES_HOSTNAME: postgres_${{ github.job }}_${{ inputs.deduplication_id }}_${{ github.run_id }}_${{ github.run_attempt }} permissions: From e9a630db41fc6939711c2e5cbd871318a46b652c Mon Sep 17 00:00:00 2001 From: Michael Puehringer Date: Tue, 23 Dec 2025 21:50:59 +0100 Subject: [PATCH 3/4] Revert --- .github/workflows/build-node-python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-node-python.yml b/.github/workflows/build-node-python.yml index 8abc5daa..5d6f453d 100644 --- a/.github/workflows/build-node-python.yml +++ b/.github/workflows/build-node-python.yml @@ -119,7 +119,7 @@ on: required: false env: - WORKFLOW_BRANCH: "mp/python_version_file" + WORKFLOW_BRANCH: "main" POSTGRES_HOSTNAME: postgres_${{ github.job }}_${{ inputs.deduplication_id }}_${{ github.run_id }}_${{ github.run_attempt }} permissions: From c74643e32116548d29319f6b9a78df98d67dbe63 Mon Sep 17 00:00:00 2001 From: Michael Puehringer Date: Tue, 23 Dec 2025 21:52:27 +0100 Subject: [PATCH 4/4] Change to flatmap --- .github/workflows/build-docker-artifacts-trigger-push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-docker-artifacts-trigger-push.yml b/.github/workflows/build-docker-artifacts-trigger-push.yml index 168e05e3..4cb89835 100644 --- a/.github/workflows/build-docker-artifacts-trigger-push.yml +++ b/.github/workflows/build-docker-artifacts-trigger-push.yml @@ -77,12 +77,12 @@ jobs: const imageTagAfterRetag = "${{ github.ref }}".replace('refs/heads/', '').replace('refs/tags/', '').replace(/[^a-zA-Z0-9._-]/g, '-'); - const result = customers.map((c) => ({ + const result = customers.flatMap((c) => config.push?.[c] ? [{ repository: process.env.REPOSITORY, customer: c, customer_json: JSON.stringify(config.push[c]), image_tag: imageTagAfterRetag, - })).filter((c) => c.customer_json); + }] : []); console.log(result); return result; env: