From 5d8f5b73e68fcd69e63ffcb9159b374ef9a3d2fb Mon Sep 17 00:00:00 2001 From: Loic Diridollou Date: Tue, 18 Feb 2025 15:37:19 -0500 Subject: [PATCH] Fix comment commands to source branches to run nightly tests in correct repo --- .github/workflows/comment_commands.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/comment_commands.yml b/.github/workflows/comment_commands.yml index 328a27c62..8717585f1 100644 --- a/.github/workflows/comment_commands.yml +++ b/.github/workflows/comment_commands.yml @@ -36,13 +36,16 @@ jobs: }) core.setOutput('sha', pr.data.head.sha) core.setOutput('branch', pr.data.head.ref) + core.setOutput('repository', pr.data.head.repo.full_name) - name: Checkout code on the correct branch uses: actions/checkout@v4 with: # context is not aware which branch to checkout so it would otherwise - # default to main + # default to main (we also need repo name to source from the right user + # otherwise it will look for the branch in pandas-stubs repo) ref: ${{ steps.get-branch-info.outputs.branch }} + repository: ${{ steps.get-branch-info.outputs.repository }} - name: Install project dependencies uses: ./.github/setup