From 4b47982750e350343eab7dec76ecd9b76857498e Mon Sep 17 00:00:00 2001 From: sayakpaul Date: Thu, 17 Oct 2024 17:15:43 +0530 Subject: [PATCH] checking. --- .github/workflows/run_tests_from_a_pr.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/run_tests_from_a_pr.yml b/.github/workflows/run_tests_from_a_pr.yml index 2ee9592fc205..94fbb2d297c5 100644 --- a/.github/workflows/run_tests_from_a_pr.yml +++ b/.github/workflows/run_tests_from_a_pr.yml @@ -7,8 +7,8 @@ on: default: 'diffusers/diffusers-pytorch-cuda' description: 'Name of the Docker image' required: true - branch: - description: 'PR Branch to test on' + pr_number: + description: 'PR number to test on' required: true test: description: 'Tests to run (e.g.: `tests/models`).' @@ -59,15 +59,7 @@ jobs: - name: Checkout PR branch uses: actions/checkout@v4 with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.event.pull_request.head.ref }} - fetch-depth: 0 - - - name: Debug PR Info - run: | - echo "PR Repository: ${{ github.event.pull_request.head.repo.full_name }}" - echo "PR Branch: ${{ github.event.pull_request.head.ref }}" - + ref: refs/pull/${{ inputs.pr_number }}/head - name: Install pytest run: |