From a79dc80a8879f646d4aac73489b4867eb85144c2 Mon Sep 17 00:00:00 2001 From: Ruben Vargas Date: Tue, 7 May 2024 09:27:25 -0600 Subject: [PATCH] Fix operator hub workflow (#918) Signed-off-by: Ruben Vargas --- .github/workflows/reusable-operator-hub-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}