diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index abec7c8..73dfc3e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,8 +14,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + if: github.event_name == 'pull_request' with: - ref: ${{ github.ref_name }} + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.ref }} + - uses: actions/checkout@v4 + if: github.event_name == 'push' - uses: actions/setup-python@v5 with: python-version: "3.12"