Skip to content

Commit 865c5b0

Browse files
committed
Fix deploy script by normalizing version string
Signed-off-by: Michael Telatynski <[email protected]>
1 parent ce3fa21 commit 865c5b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/actions/download-verify-element-tarball/action.yml

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ runs:
1111
using: composite
1212
steps:
1313
- name: Download release tarball
14-
id: current_download
1514
uses: robinraju/release-downloader@a96f54c1b5f5e09e47d9504526e96febd949d4c2 # v1
1615
with:
1716
tag: ${{ inputs.tag }}

.github/workflows/deploy.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
- name: Check current version on deployment
4242
id: current_version
4343
run: |
44-
echo "version=v$(curl -s https://$SITE/version)" >> $GITHUB_OUTPUT
44+
version=$(curl -s https://$SITE/version)
45+
echo "version=${version#v}" >> $GITHUB_OUTPUT
4546
4647
# The current version bundle melding dance is skipped if the version we're deploying is the same
4748
# as then we're just doing a re-deploy of the same version with potentially different configs.
@@ -50,7 +51,7 @@ jobs:
5051
if: steps.current_version.outputs.version != github.ref_name
5152
uses: ./.github/actions/download-verify-element-tarball
5253
with:
53-
tag: ${{ steps.current_version.outputs.version }}
54+
tag: v${{ steps.current_version.outputs.version }}
5455
out-file-path: _current_version
5556

5657
- name: Download target version

0 commit comments

Comments
 (0)