Skip to content

Commit 0b84924

Browse files
committed
Read targets
1 parent 9c6bd26 commit 0b84924

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/oracle-db-deinstall.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,9 @@ jobs:
9090
shell: bash
9191
run: |
9292
environment_name="environment_name_$(echo ${{ github.event.inputs.TargetEnvironment }} | sed 's/delius-core-dev/delius_core_development_dev/;s/delius-core-test/delius_core_test_test/;s/delius-core-training/delius_core_test_training/;s/delius-core-stage/delius_core_preproduction_stage/;s/delius-core-pre-prod/delius_core_preproduction_pre_prod/;s/delius-core-prod/delius_core_production_prod/')"
93-
IFS=","
94-
for target in ${{ github.event.inputs.TargetHost }}
93+
IFS="," read -ra targets <<< "${{ github.event.inputs.TargetHost }}"
94+
for target in "${targets[@]}"
9595
do
96-
IFS=""
9796
TargetHost+=${environment_name}_${target},
9897
done
9998
echo "TargetHost=${TargetHost%?}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)