Skip to content

Commit

Permalink
fix: docker release workflow inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
AntiD2ta committed Oct 25, 2024
1 parent b4600e7 commit d07c9bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d07c9bd

Please sign in to comment.