Fix deploy script by normalizing version string
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
ce3fa2164f
commit
865c5b0e9c
2 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,6 @@ runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: Download release tarball
|
- name: Download release tarball
|
||||||
id: current_download
|
|
||||||
uses: robinraju/release-downloader@a96f54c1b5f5e09e47d9504526e96febd949d4c2 # v1
|
uses: robinraju/release-downloader@a96f54c1b5f5e09e47d9504526e96febd949d4c2 # v1
|
||||||
with:
|
with:
|
||||||
tag: ${{ inputs.tag }}
|
tag: ${{ inputs.tag }}
|
||||||
|
|
5
.github/workflows/deploy.yml
vendored
5
.github/workflows/deploy.yml
vendored
|
@ -41,7 +41,8 @@ jobs:
|
||||||
- name: Check current version on deployment
|
- name: Check current version on deployment
|
||||||
id: current_version
|
id: current_version
|
||||||
run: |
|
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
|
# 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.
|
# 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
|
if: steps.current_version.outputs.version != github.ref_name
|
||||||
uses: ./.github/actions/download-verify-element-tarball
|
uses: ./.github/actions/download-verify-element-tarball
|
||||||
with:
|
with:
|
||||||
tag: ${{ steps.current_version.outputs.version }}
|
tag: v${{ steps.current_version.outputs.version }}
|
||||||
out-file-path: _current_version
|
out-file-path: _current_version
|
||||||
|
|
||||||
- name: Download target version
|
- name: Download target version
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue