diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ec8b6f1..ac79960 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,8 +28,11 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout repository + - name: Checkout repository (Handle all events) uses: actions/checkout@v4.2.2 + with: + ref: ${{ github.head_ref || github.event.pull_request.head.ref || github.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} - name: Setup Bazel with shared caching uses: bazel-contrib/setup-bazel@0.14.0