From ff04d5c6a610a1ebc1886866c85d4f0d825a1dd7 Mon Sep 17 00:00:00 2001 From: Andres Morey Date: Sat, 26 Oct 2024 12:19:06 +0300 Subject: [PATCH] extracts chart version in GitHub attach manifest action (#74) --- .github/workflows/release.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0dcd578..688db9f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -70,10 +70,16 @@ jobs: helm template kubetail charts/kubetail --values hack/kubetail-values-clusterauth.yaml > kubetail-clusterauth.yaml helm template kubetail charts/kubetail --values hack/kubetail-values-tokenauth.yaml > kubetail-tokenauth.yaml + - name: Get kubetail chart version + id: get_version + uses: mikefarah/yq@v4 + with: + cmd: yq '.version' charts/kubetail/Chart.yaml + - name: Attach quickstart manifests to gh release uses: softprops/action-gh-release@v2 with: - tag_name: latest + tag_name: kubetail-${{ steps.get_version.outputs.result }} files: | kubetail-clusterauth.yaml kubetail-tokenauth.yaml