Skip to content

Commit e48cc62

Browse files
authored
template(ci): Fix operator version extraction (#577)
1 parent 0fd2a1f commit e48cc62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/.github/workflows/build.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
set -euo pipefail
140140
[ -n "$GITHUB_DEBUG" ] && set -x
141141

142-
CURRENT_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[0].version')
142+
CURRENT_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "stackable-{[ operator.name }]") | .version')
143143

144144
if [ "$GITHUB_EVENT_NAME" == 'pull_request' ]; then
145145
# Include a PR suffix if this workflow is triggered by a PR

0 commit comments

Comments
 (0)