Skip to content

Commit

Permalink
debug 03
Browse files Browse the repository at this point in the history
  • Loading branch information
M_Westerholz committed Oct 18, 2024
1 parent 99ab64f commit df8e30d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/install-and-run-spsh-loadtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ jobs:
echo "Lowercase branch: $LOWERCASE_BRANCH"
echo "::set-output name=lowercase_branch::$LOWERCASE_BRANCH"
- name: Split the input string into an array
if: ${{ inputs.execute }}
run: |
IFS=',' read -ra SCENARIOS <<< "${{ github.event.inputs.scenario-list }}"
echo "SCENARIOS=${SCENARIOS[@]}" >> $GITHUB_ENV
- name: Trigger Loadtest CronJob
if: ${{ inputs.execute }}

Expand All @@ -111,8 +117,7 @@ jobs:
# kubectl create job --from=cronjob/<cronjob-name> <job-name> -n <namespace-name>

run: |
scenarios=(${{ inputs.scenario-list }//,/ })
for scenario in "${scenarios[@]}"
for scenario in "${SCENARIOS[@]}"; do
do
kubectl create job --from=cronjob/loadtest-spsh-${scenario} ${scenario}-${{ steps.convert_branch.outputs.lowercase_branch }}-$(date +%d.%m.%Y-%H%M) -n spsh
done
Expand Down

0 comments on commit df8e30d

Please sign in to comment.