Skip to content

Commit ed8f8f4

Browse files
Merge branch '9.6' into 10.5
2 parents 439901d + 4d338ec commit ed8f8f4

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ jobs:
2323
steps:
2424
- name: Checkout
2525
uses: actions/checkout@v5
26+
with:
27+
fetch-depth: 1
28+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
29+
30+
- name: Use local branch
31+
shell: bash
32+
run: |
33+
BRANCH=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.head_ref }}" || echo "${{ github.ref_name }}")
34+
git branch -D $BRANCH 2>/dev/null || true
35+
git branch $BRANCH HEAD
36+
git checkout $BRANCH
2637
2738
- name: Install PHP
2839
uses: shivammathur/setup-php@v2
@@ -47,6 +58,17 @@ jobs:
4758
steps:
4859
- name: Checkout
4960
uses: actions/checkout@v5
61+
with:
62+
fetch-depth: 1
63+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
64+
65+
- name: Use local branch
66+
shell: bash
67+
run: |
68+
BRANCH=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.head_ref }}" || echo "${{ github.ref_name }}")
69+
git branch -D $BRANCH 2>/dev/null || true
70+
git branch $BRANCH HEAD
71+
git checkout $BRANCH
5072
5173
- name: Install PHP
5274
uses: shivammathur/setup-php@v2
@@ -71,6 +93,17 @@ jobs:
7193
steps:
7294
- name: Checkout
7395
uses: actions/checkout@v5
96+
with:
97+
fetch-depth: 1
98+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
99+
100+
- name: Use local branch
101+
shell: bash
102+
run: |
103+
BRANCH=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.head_ref }}" || echo "${{ github.ref_name }}")
104+
git branch -D $BRANCH 2>/dev/null || true
105+
git branch $BRANCH HEAD
106+
git checkout $BRANCH
74107
75108
- name: Install PHP
76109
uses: shivammathur/setup-php@v2
@@ -123,6 +156,17 @@ jobs:
123156

124157
- name: Checkout
125158
uses: actions/checkout@v5
159+
with:
160+
fetch-depth: 1
161+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
162+
163+
- name: Use local branch
164+
shell: bash
165+
run: |
166+
BRANCH=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.head_ref }}" || echo "${{ github.ref_name }}")
167+
git branch -D $BRANCH 2>/dev/null || true
168+
git branch $BRANCH HEAD
169+
git checkout $BRANCH
126170
127171
- name: Install PHP with extensions
128172
uses: shivammathur/setup-php@v2
@@ -172,6 +216,17 @@ jobs:
172216

173217
- name: Checkout
174218
uses: actions/checkout@v5
219+
with:
220+
fetch-depth: 1
221+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
222+
223+
- name: Use local branch
224+
shell: bash
225+
run: |
226+
BRANCH=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.head_ref }}" || echo "${{ github.ref_name }}")
227+
git branch -D $BRANCH 2>/dev/null || true
228+
git branch $BRANCH HEAD
229+
git checkout $BRANCH
175230
176231
- name: Install PHP with extensions
177232
uses: shivammathur/setup-php@v2
@@ -199,6 +254,17 @@ jobs:
199254
steps:
200255
- name: Checkout
201256
uses: actions/checkout@v5
257+
with:
258+
fetch-depth: 1
259+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
260+
261+
- name: Use local branch
262+
shell: bash
263+
run: |
264+
BRANCH=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.head_ref }}" || echo "${{ github.ref_name }}")
265+
git branch -D $BRANCH 2>/dev/null || true
266+
git branch $BRANCH HEAD
267+
git checkout $BRANCH
202268
203269
- name: Install PHP with extensions
204270
uses: shivammathur/setup-php@v2
@@ -246,6 +312,17 @@ jobs:
246312
steps:
247313
- name: Checkout
248314
uses: actions/checkout@v5
315+
with:
316+
fetch-depth: 1
317+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
318+
319+
- name: Use local branch
320+
shell: bash
321+
run: |
322+
BRANCH=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.head_ref }}" || echo "${{ github.ref_name }}")
323+
git branch -D $BRANCH 2>/dev/null || true
324+
git branch $BRANCH HEAD
325+
git checkout $BRANCH
249326
250327
- name: Install PHP with extensions
251328
uses: shivammathur/setup-php@v2
@@ -306,6 +383,17 @@ jobs:
306383
steps:
307384
- name: Checkout
308385
uses: actions/checkout@v5
386+
with:
387+
fetch-depth: 1
388+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
389+
390+
- name: Use local branch
391+
shell: bash
392+
run: |
393+
BRANCH=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.head_ref }}" || echo "${{ github.ref_name }}")
394+
git branch -D $BRANCH 2>/dev/null || true
395+
git branch $BRANCH HEAD
396+
git checkout $BRANCH
309397
310398
- name: Install PHP with extensions
311399
uses: shivammathur/setup-php@v2

0 commit comments

Comments
 (0)