diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index 1ab4f39f0f..b17e777d79 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -40,8 +40,8 @@ jobs: # Call each git command individually, preventing unnecessary checkouts git init . git config core.symlinks true - git remote add origin https://github.com/$GITHUB_REPOSITORY.git - git pull origin $GITHUB_REF:PR_BRANCH --depth=1 + git remote add origin ${{ github.event.pull_request.head.repo.clone_url }} + git pull origin ${{github.event.pull_request.head.ref}} --depth=1 git submodule update --jobs=$JOB_SLOTS --init --depth=1 - name: Dependencies