Skip to content

Commit 4b47982

Browse files
committed
checking.
1 parent b87af3e commit 4b47982

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/run_tests_from_a_pr.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
default: 'diffusers/diffusers-pytorch-cuda'
88
description: 'Name of the Docker image'
99
required: true
10-
branch:
11-
description: 'PR Branch to test on'
10+
pr_number:
11+
description: 'PR number to test on'
1212
required: true
1313
test:
1414
description: 'Tests to run (e.g.: `tests/models`).'
@@ -59,15 +59,7 @@ jobs:
5959
- name: Checkout PR branch
6060
uses: actions/checkout@v4
6161
with:
62-
repository: ${{ github.event.pull_request.head.repo.full_name }}
63-
ref: ${{ github.event.pull_request.head.ref }}
64-
fetch-depth: 0
65-
66-
- name: Debug PR Info
67-
run: |
68-
echo "PR Repository: ${{ github.event.pull_request.head.repo.full_name }}"
69-
echo "PR Branch: ${{ github.event.pull_request.head.ref }}"
70-
62+
ref: refs/pull/${{ inputs.pr_number }}/head
7163

7264
- name: Install pytest
7365
run: |

0 commit comments

Comments
 (0)