Skip to content

Commit 1efc1a5

Browse files
committed
Fixed the branch that is checked out when scheduled v7 tests run.
1 parent 662717e commit 1efc1a5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci-7.x.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,16 @@ jobs:
5757
name: Laravel ${{ matrix.laravel }} on PHP ${{ matrix.php }} (${{ matrix.os }})
5858
runs-on: ${{ matrix.os }}-latest
5959
steps:
60-
- name: Checkout the code
60+
- name: Checkout the PR Branch
61+
uses: actions/checkout@v3
62+
if: ${{ github.event_name == 'pull_request' }}
63+
64+
- name: Checkout the v7 Branch
6165
uses: actions/checkout@v2
66+
if: ${{ github.event_name == 'schedule' }}
67+
with:
68+
# Set the branch to our version branch not master when scheduled.
69+
ref: 'next/7.x/main'
6270

6371
- name: Install PHP and composer environment
6472
uses: shivammathur/setup-php@v2

0 commit comments

Comments
 (0)