diff --git a/.github/workflows/pr-loadtest.yml b/.github/workflows/pr-loadtest.yml index 5eca75bc1..87f94c519 100644 --- a/.github/workflows/pr-loadtest.yml +++ b/.github/workflows/pr-loadtest.yml @@ -61,7 +61,11 @@ jobs: uses: "./.github/template/setup-golang" - name: Setup gardener cluster name - run: echo "GARDENER_CLUSTER_NAME=$(echo ${{ matrix.name }}-${{ github.run_id }}${{ github.run_attempt }} | tr -cd '[:alnum:]' | cut -c 1-14)" >> $GITHUB_ENV + run: | + ID=$(echo ${{ github.run_id }}${{ github.run_attempt }} | rev ) + SHORT_NAME=$(echo ${{ matrix.name }} | awk -F- '{for(i=1;i<=NF;i++) printf "%s",substr($i,1,1);print "";}') + GARDENER_CLUSTER_NAME=$(echo lt-${SHORT_NAME}-${ID} | cut -c 1-14) + echo "GARDENER_CLUSTER_NAME=$GARDENER_CLUSTER_NAME" >> $GITHUB_ENV # save gardener kubeconfig to a temp file in order to pass it to the command - name: Save service account to file