From 87be06ca77166e6a6215eee5a990ab9f07238a18 Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Mon, 29 Apr 2024 14:32:43 +0200 Subject: [PATCH] Fix repo. fetch/checkout in PR slow CI job (#30537) fix Co-authored-by: ydshieh --- .github/workflows/self-new-model-pr-caller.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/self-new-model-pr-caller.yml b/.github/workflows/self-new-model-pr-caller.yml index 44a54ac675..3bd19b6f2c 100644 --- a/.github/workflows/self-new-model-pr-caller.yml +++ b/.github/workflows/self-new-model-pr-caller.yml @@ -69,7 +69,7 @@ jobs: - name: Update clone working-directory: /transformers - run: git fetch && git checkout ${{ github.event.pull_request.head.sha }} + run: git fetch && git fetch origin pull/${{ github.event.pull_request.number }}/head:pull/${{ github.event.pull_request.number }}/merge && git checkout pull/${{ github.event.pull_request.number }}/merge - name: Reinstall transformers in edit mode (remove the one installed during docker image build) working-directory: /transformers