From e68de6aad864b9bc72f3a96669c568d09fe8aa1b Mon Sep 17 00:00:00 2001 From: Max Kalashnikoff Date: Thu, 18 Jan 2024 22:19:30 +0100 Subject: [PATCH] fix(ci): changing to the latest and manual tags --- .github/workflows/dispatch_deploy.yaml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dispatch_deploy.yaml b/.github/workflows/dispatch_deploy.yaml index a35c4a3..c27aea7 100644 --- a/.github/workflows/dispatch_deploy.yaml +++ b/.github/workflows/dispatch_deploy.yaml @@ -1,5 +1,5 @@ name: ⚙️ Deploy -run-name: "Deploy: ${{ github.sha }} ➠ ${{ inputs.version }}${{ (!inputs.deploy-infra && !inputs.deploy-app) && ' 👀 deploy nothing' || ''}}${{ inputs.deploy-infra && ' ❱❱  infra' || '' }}${{ inputs.deploy-app && ' ❱❱  app' || '' }}" +run-name: "Deploy: ${{ github.sha }} ➠ ${{ inputs.version-type }}:${{ inputs.version-tag }}${{ (!inputs.deploy-infra && !inputs.deploy-app) && ' 👀 deploy nothing' || ''}}${{ inputs.deploy-infra && ' ❱❱  infra' || '' }}${{ inputs.deploy-app && ' ❱❱  app' || '' }}" on: workflow_dispatch: @@ -22,11 +22,18 @@ on: - prod default: staging required: true - version: + version-type: description: "Release Version" - type: string - required: true + type: choice + options: + - latest + - manual default: 'latest' + required: true + version-tag: + description: "Release Version Tag (for manual version)" + type: string + default: '' concurrency: deploy @@ -51,10 +58,10 @@ jobs: - name: Select target version id: select_version run: | - if [ "${{ inputs.version }}" == "latest" ]; then + if [ "${{ inputs.version-type }}" == "latest" ]; then echo "version=$(git tag | sort --version-sort | tail -n1)" >> "$GITHUB_OUTPUT" else - echo "version=${{ inputs.version }}" >> "$GITHUB_OUTPUT" + echo "version=${{ inputs.version-tag }}" >> "$GITHUB_OUTPUT" fi outputs: version: ${{ steps.select_version.outputs.version }}