From 4bc4b43abbf1d816ca6610e19c0715083a652b20 Mon Sep 17 00:00:00 2001 From: Julien Kmec Date: Mon, 10 Feb 2025 16:49:46 -0800 Subject: [PATCH] Update run_tests.yml --- .github/workflows/run_tests.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 98e75f7..a324bce 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -17,7 +17,16 @@ jobs: python-version: ["3.12"] steps: - - uses: actions/checkout@v3 + - name: Checkout code (PR) + if: github.event_name == 'pull_request_target' + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - name: Checkout code (Push) + if: github.event_name == 'push' + uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: