From 92516b7f711d05b614fde0c82ae6a004ae8644bf Mon Sep 17 00:00:00 2001 From: Xiaohan Song Date: Wed, 15 Nov 2023 06:33:29 +0800 Subject: [PATCH] Load connector secrets in performance harness to pass acceptance test (#32480) --- .github/workflows/connector-performance-command.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/connector-performance-command.yml b/.github/workflows/connector-performance-command.yml index c86c798841f0..3ed30a4ceb77 100644 --- a/.github/workflows/connector-performance-command.yml +++ b/.github/workflows/connector-performance-command.yml @@ -137,7 +137,7 @@ jobs: id: regex uses: AsasInnab/regex-action@v1 with: - regex_pattern: "^((connectors|bases)/)?[a-zA-Z0-9-_]+$" + regex_pattern: "^(connectors/)?[a-zA-Z0-9-_]+$" regex_flags: "i" # required to be set for this plugin search_string: ${{ inputs.connector }} - name: Validate input workflow format @@ -179,6 +179,8 @@ jobs: run: | export PATH="$PATH:/root/.local/bin" ci_credentials connectors-performance/$HARNESS_TYPE write-to-storage + connector_name=$(echo ${{ inputs.connector }} | sed 's,.*/,,') + ci_credentials connectors-performance/$connector_name write-to-storage env: GCP_GSM_CREDENTIALS: ${{ secrets.GCP_GSM_CREDENTIALS }} HARNESS_TYPE: ${{ steps.which-harness.outputs.harness_type }} @@ -195,7 +197,7 @@ jobs: run: | echo "Building... ${{inputs.connector}}" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY # this is a blank line - connector_name=$(echo ${{ inputs.connector }} | cut -d / -f 2) + connector_name=$(echo ${{ inputs.connector }} | sed 's,.*/,,') echo "Running ./gradlew :airbyte-integrations:connectors:$connector_name:build -x check" ./gradlew :airbyte-integrations:connectors:$connector_name:build -x check env: