From d09b727c8055432d8535ac3376d9e5605ab4d8c6 Mon Sep 17 00:00:00 2001 From: Max Kalashnikoff Date: Thu, 18 Jan 2024 22:22:50 +0100 Subject: [PATCH] fix: changing to -latest- --- .github/workflows/dispatch_deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dispatch_deploy.yml b/.github/workflows/dispatch_deploy.yml index 22533986a..08cfbc1f6 100644 --- a/.github/workflows/dispatch_deploy.yml +++ b/.github/workflows/dispatch_deploy.yml @@ -25,7 +25,7 @@ on: version: description: "Release Version" type: string - default: 'latest' + default: '-latest-' concurrency: deploy @@ -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/release-get_deployed_version.yml@0.1.3 with: @@ -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"