diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cc56d27a..09d1f6b2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,7 +35,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.sha || github.ref }} + ref: ${{ github.event.pull_request.head.sha || github.sha || github.ref }} - id: set-matrix run: echo "matrix=$(jq -c . < ./.github/workflows/matrix.json)" >> $GITHUB_OUTPUT @@ -52,7 +52,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.sha || github.ref }} + ref: ${{ github.event.pull_request.head.sha || github.sha || github.ref }} - uses: ./.github/actions/setup with: @@ -70,7 +70,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.sha || github.ref }} + ref: ${{ github.event.pull_request.head.sha || github.sha || github.ref }} - uses: ./.github/actions/setup with: @@ -97,7 +97,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.sha || github.ref }} + ref: ${{ github.event.pull_request.head.sha || github.sha || github.ref }} - uses: ./.github/actions/setup with: @@ -117,7 +117,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.sha || github.ref }} + ref: ${{ github.event.pull_request.head.sha || github.sha || github.ref }} - uses: ./.github/actions/setup with: @@ -133,7 +133,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.sha || github.ref }} + ref: ${{ github.event.pull_request.head.sha || github.sha || github.ref }} - uses: ./.github/actions/setup with: @@ -149,7 +149,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.sha || github.ref }} + ref: ${{ github.event.pull_request.head.sha || github.sha || github.ref }} - uses: ./.github/actions/setup with: @@ -165,7 +165,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.sha || github.ref }} + ref: ${{ github.event.pull_request.head.sha || github.sha || github.ref }} - uses: ./.github/actions/setup with: @@ -181,7 +181,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.sha || github.ref }} + ref: ${{ github.event.pull_request.head.sha || github.sha || github.ref }} - uses: ./.github/actions/setup with: