From d07c9bda92a1a04354f2edd78b32e654391d314d Mon Sep 17 00:00:00 2001 From: AntiD2ta Date: Fri, 25 Oct 2024 15:05:19 +0200 Subject: [PATCH] fix: docker release workflow inputs --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 52c90ab..70dcc43 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,10 +13,10 @@ on: - main workflow_dispatch: inputs: - version: + target_environment: type: choice description: 'Environment to release to' - required: true + required: false default: 'prod' options: - dev @@ -78,9 +78,9 @@ jobs: steps: - name: Set REPO environment variable run: | - if [[ "${{ github.event.inputs.version }}" == "dev" ]]; then + if [[ "${{ github.event.inputs.target_environment }}" == "dev" ]]; then echo "REPO=${{ env.REPO_DEV }}" >> $GITHUB_ENV - elif [[ "${{ github.event.inputs.version }}" == "staging" ]]; then + elif [[ "${{ github.event.inputs.target_environment }}" == "staging" ]]; then echo "REPO=${{ env.REPO_STAGING }}" >> $GITHUB_ENV else echo "REPO=${{ env.REPO_PROD }}" >> $GITHUB_ENV