From 865c5b0e9c69e039e1e899e721538d5d5cbd5b80 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 3 Dec 2024 12:42:23 +0000 Subject: [PATCH] Fix deploy script by normalizing version string Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .github/actions/download-verify-element-tarball/action.yml | 1 - .github/workflows/deploy.yml | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/download-verify-element-tarball/action.yml b/.github/actions/download-verify-element-tarball/action.yml index e61b96596bf..75d325c5438 100644 --- a/.github/actions/download-verify-element-tarball/action.yml +++ b/.github/actions/download-verify-element-tarball/action.yml @@ -11,7 +11,6 @@ runs: using: composite steps: - name: Download release tarball - id: current_download uses: robinraju/release-downloader@a96f54c1b5f5e09e47d9504526e96febd949d4c2 # v1 with: tag: ${{ inputs.tag }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ac6249d654a..daac3bfed85 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -41,7 +41,8 @@ jobs: - name: Check current version on deployment id: current_version run: | - echo "version=v$(curl -s https://$SITE/version)" >> $GITHUB_OUTPUT + version=$(curl -s https://$SITE/version) + echo "version=${version#v}" >> $GITHUB_OUTPUT # The current version bundle melding dance is skipped if the version we're deploying is the same # as then we're just doing a re-deploy of the same version with potentially different configs. @@ -50,7 +51,7 @@ jobs: if: steps.current_version.outputs.version != github.ref_name uses: ./.github/actions/download-verify-element-tarball with: - tag: ${{ steps.current_version.outputs.version }} + tag: v${{ steps.current_version.outputs.version }} out-file-path: _current_version - name: Download target version