Skip to content

Commit

Permalink
fix: changing to -latest-
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbrother committed Jan 18, 2024
1 parent 7757592 commit d09b727
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dispatch_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
version:
description: "Release Version"
type: string
default: 'latest'
default: '-latest-'

concurrency: deploy

Expand All @@ -38,7 +38,7 @@ permissions:
jobs:
get_deployed_version:
name: Lookup deployed version
if: ${{ !inputs.deploy-app && inputs.version == 'latest' }}
if: ${{ !inputs.deploy-app && inputs.version == '-latest-' }}
secrets: inherit
uses: WalletConnect/ci_workflows/.github/workflows/[email protected]
with:
Expand All @@ -63,9 +63,9 @@ jobs:
- name: Select target version
id: select_version
run: |
if [ "${{ inputs.deploy-app }}" != "true" ] && [ "${{ inputs.version }}" == "latest" ]; then
if [ "${{ inputs.deploy-app }}" != "true" ] && [ "${{ inputs.version }}" == "-latest-" ]; then
echo "version=${{ needs.get_deployed_version.outputs.version }}" >> "$GITHUB_OUTPUT"
elif [ "${{ inputs.version }}" == "latest" ]; then
elif [ "${{ inputs.version }}" == "-latest-" ]; then
echo "version=$(git tag | sort --version-sort | tail -n1)" >> "$GITHUB_OUTPUT"
else
echo "version=${{ inputs.version }}" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit d09b727

Please sign in to comment.