diff --git a/.github/workflows/reusable-operator-hub-release.yaml b/.github/workflows/reusable-operator-hub-release.yaml index 620bb4dd8..7bd89d574 100644 --- a/.github/workflows/reusable-operator-hub-release.yaml +++ b/.github/workflows/reusable-operator-hub-release.yaml @@ -38,7 +38,7 @@ jobs: - name: Determine operator version to release id: operator-version - run: echo "version=${BRANCH#"releases/"}" >> "$GITHUB_OUTPUT" + run: echo "version=$(grep -Eo '## [0-9]+\.[0-9]+\.[0-9]+' CHANGELOG.md | head -n 1 | awk '{print $2}')" >> "$GITHUB_OUTPUT" env: BRANCH: ${{ inputs.branch }}