From ccea9e80ba582b8ad52d6636737d1bab482bcd98 Mon Sep 17 00:00:00 2001 From: Michael Adkins Date: Thu, 14 Apr 2022 14:03:51 -0500 Subject: [PATCH] Use https to retrieve latest tags for Helm chart pins Closes https://github.com/PrefectHQ/server/issues/361 --- .github/workflows/helm-release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml index adc48e99..44dd4a2c 100644 --- a/.github/workflows/helm-release.yml +++ b/.github/workflows/helm-release.yml @@ -17,14 +17,17 @@ jobs: - name: Get the version tags id: get_version run: | + # Enable pipefail so git command failures do not result in null versions downstream + set -x + echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3) echo ::set-output name=CORE_VERSION::$(\ git ls-remote --tags --refs --sort="v:refname" \ - git://github.com/PrefectHQ/prefect.git | tail -n1 | sed 's/.*\///' \ + https://github.com/PrefectHQ/prefect.git | tail -n1 | sed 's/.*\///' \ ) echo ::set-output name=UI_VERSION::$(\ git ls-remote --tags --refs --sort="v:refname" \ - git://github.com/PrefectHQ/ui.git | tail -n1 | sed 's/.*\///' \ + https://github.com/PrefectHQ/ui.git | tail -n1 | sed 's/.*\///' \ ) - name: Configure Git