From 67b88c8cd952d980c7b1d36b788eb6b984ceb583 Mon Sep 17 00:00:00 2001 From: Techassi Date: Tue, 24 Feb 2026 09:07:42 +0100 Subject: [PATCH] template(ci): Fix operator version extraction --- template/.github/workflows/build.yaml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/.github/workflows/build.yaml.j2 b/template/.github/workflows/build.yaml.j2 index af893c06..856b1828 100644 --- a/template/.github/workflows/build.yaml.j2 +++ b/template/.github/workflows/build.yaml.j2 @@ -139,7 +139,7 @@ jobs: set -euo pipefail [ -n "$GITHUB_DEBUG" ] && set -x - CURRENT_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[0].version') + CURRENT_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "stackable-{[ operator.name }]") | .version') if [ "$GITHUB_EVENT_NAME" == 'pull_request' ]; then # Include a PR suffix if this workflow is triggered by a PR