From ecd87464b096e9873b36dbe74361c315b5d52103 Mon Sep 17 00:00:00 2001 From: Satish Gandham Date: Mon, 31 Oct 2022 12:44:40 +0530 Subject: [PATCH] ci: Rearrange client build steps (#17979) Rearrange client build steps Co-authored-by: Satish Gandham --- .github/workflows/client-build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/client-build.yml b/.github/workflows/client-build.yml index 710ec2c4fa..1d10ffa90d 100644 --- a/.github/workflows/client-build.yml +++ b/.github/workflows/client-build.yml @@ -48,7 +48,14 @@ jobs: fetch-depth: 0 ref: refs/pull/${{ inputs.pr }}/merge + # Checkout the code in the current branch in case the workflow is called because of a branch push event + - name: Checkout the head commit of the branch + if: inputs.pr == 0 + uses: actions/checkout@v2 + with: + fetch-depth: 0 + # Create a run record exactly at the time of merge to release to # ensure we compare run details with code at this point - name: Create Perf Meta @@ -59,13 +66,6 @@ jobs: "INSERT INTO public.run_meta (gh_run_id, gh_run_attempt, pull_request_id, is_active) VALUES ('${{github.run_id}}', '${{github.run_attempt}}', '${{ inputs.pr }}', FALSE)" - # Checkout the code in the current branch in case the workflow is called because of a branch push event - - name: Checkout the head commit of the branch - if: inputs.pr == 0 - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - name: Figure out the PR number run: echo ${{ inputs.pr }}