From 0691a63735d84a3c25b1adfad742a4ee8e02cc12 Mon Sep 17 00:00:00 2001 From: Mitchell Nielsen Date: Wed, 9 Oct 2024 13:51:51 -0500 Subject: [PATCH] Fix operatorVersion output (#111) Related to https://linear.app/prefect/issue/PLA-343/automatically-update-prefect-operator-helm-chart-versions-in-ccd-to --- .github/workflows/helm-release.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/helm-release.yaml b/.github/workflows/helm-release.yaml index 358146d..d124183 100644 --- a/.github/workflows/helm-release.yaml +++ b/.github/workflows/helm-release.yaml @@ -34,9 +34,10 @@ jobs: echo "RELEASE_VERSION=$(date +'%Y.%-m.%-d%H%M%S')" >> $GITHUB_ENV # This ensures that the latest tag we grab will be of the operator image, and not the helm chart - echo "IMAGE_VERSION=$(\ + echo "OPERATOR_VERSION=$(\ git ls-remote --tags --refs --sort="v:refname" \ - origin 'v[0-9].[0-9].[0-9]' | tail -n1 | sed 's/.*\///' | sed 's/v//')" >> $GITHUB_ENV + origin 'v[0-9].[0-9].[0-9]' | tail -n1 | sed 's/.*\///' + )" >> $GITHUB_ENV - name: Output versions as GitHub Outputs id: output_versions