File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2222 - name : Checkout code
2323 uses : actions/checkout@v4
2424 with :
25- ref : ${{ github.head_ref }}
25+ # Checkout the actual branch, not a specific commit
26+ ref : ${{ github.head_ref || github.ref_name }}
27+ # Fetch the full history to avoid shallow clone issues
28+ fetch-depth : 0
2629
2730 - name : Run Laravel Pint
2831 uses : aglipanci/laravel-pint-action@latest
Original file line number Diff line number Diff line change 2828 matrix :
2929 os : [ ubuntu-latest ]
3030 php : [ 8.2, 8.3, 8.4 ]
31- dependency-version : [ prefer-lowest, prefer- stable ]
31+ dependency-version : [ prefer-stable ]
3232
3333 name : ${{ matrix.os }} / PHP ${{ matrix.php }} / ${{ matrix.dependency-version }}
3434
4141 - name : Checkout code
4242 uses : actions/checkout@v4
4343 with :
44- ref : ${{ github.head_ref }}
44+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
4545
4646 - name : Validate composer.json and composer.lock
4747 run : composer validate --strict
You can’t perform that action at this time.
0 commit comments