From c715e1ee187ea6153c2324da8e0bfd7544b7d86d Mon Sep 17 00:00:00 2001 From: James Wong <2421248+jameswnl@users.noreply.github.com> Date: Tue, 28 May 2024 23:18:51 -0400 Subject: [PATCH] move pr deployment cluster hostname to secrets --- .github/workflows/pr_deployment_test.yml | 4 ++-- .github/workflows/scripts/pr_deployment_test.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr_deployment_test.yml b/.github/workflows/pr_deployment_test.yml index 5974432fa..15d9bc634 100644 --- a/.github/workflows/pr_deployment_test.yml +++ b/.github/workflows/pr_deployment_test.yml @@ -11,7 +11,7 @@ jobs: pull-requests: write needs: deployment_ready steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Trigger tests on PR deployment id: test_pr run: | @@ -32,5 +32,5 @@ jobs: steps: - uses: actions/checkout@v4 - name: Wait for PR deployment completion - run: bash ./.github/workflows/scripts/pr_deployment_test.sh wait_for_pr_deployment ${{ github.event.number }} + run: bash ./.github/workflows/scripts/pr_deployment_test.sh wait_for_pr_deployment ${{ github.event.number }} ${{ secrets.PR_DEPLOY_CLUSTER_HOSTNAME }} shell: bash diff --git a/.github/workflows/scripts/pr_deployment_test.sh b/.github/workflows/scripts/pr_deployment_test.sh index fd121fc42..b91a0e81b 100644 --- a/.github/workflows/scripts/pr_deployment_test.sh +++ b/.github/workflows/scripts/pr_deployment_test.sh @@ -55,8 +55,9 @@ invoke_pr_test() { wait_for_pr_deployment() { ############################# PR_NUMBER=$1 + CLUSTER_HOST=$2 echo "wait_for_pr_deployment: PR_NUMBER=${PR_NUMBER}" - URL="https://wisdom-service-wisdom-pr-${PR_NUMBER}.apps.stage2-west.v2dz.p1.openshiftapps.com/check/" + URL="https://wisdom-service-wisdom-pr-${PR_NUMBER}.apps.${CLUSTER_HOST}/check/" # URL=https://stage.ai.ansible.redhat.com/check/ for i in {1..16} # 8 minutes shouid be enough do