Skip to content

Commit 95ef9ef

Browse files
Merge branch '12.3'
2 parents 47d43ba + 96b9b87 commit 95ef9ef

File tree

1 file changed

+68
-2
lines changed

1 file changed

+68
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 68 additions & 2 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
@@ -117,6 +150,17 @@ jobs:
117150

118151
- name: Checkout
119152
uses: actions/checkout@v5
153+
with:
154+
fetch-depth: 1
155+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
156+
157+
- name: Use local branch
158+
shell: bash
159+
run: |
160+
BRANCH=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.head_ref }}" || echo "${{ github.ref_name }}")
161+
git branch -D $BRANCH 2>/dev/null || true
162+
git branch $BRANCH HEAD
163+
git checkout $BRANCH
120164
121165
- name: Install PHP with extensions
122166
uses: shivammathur/setup-php@v2
@@ -165,7 +209,7 @@ jobs:
165209
- name: Checkout
166210
uses: actions/checkout@v5
167211
with:
168-
fetch-depth: 0
212+
fetch-depth: 1
169213
ref: ${{ github.event.pull_request.head.sha || github.sha }}
170214

171215
- name: Use local branch
@@ -203,7 +247,7 @@ jobs:
203247
- name: Checkout
204248
uses: actions/checkout@v5
205249
with:
206-
fetch-depth: 0
250+
fetch-depth: 1
207251
ref: ${{ github.event.pull_request.head.sha || github.sha }}
208252

209253
- name: Use local branch
@@ -260,6 +304,17 @@ jobs:
260304
steps:
261305
- name: Checkout
262306
uses: actions/checkout@v5
307+
with:
308+
fetch-depth: 1
309+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
310+
311+
- name: Use local branch
312+
shell: bash
313+
run: |
314+
BRANCH=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.head_ref }}" || echo "${{ github.ref_name }}")
315+
git branch -D $BRANCH 2>/dev/null || true
316+
git branch $BRANCH HEAD
317+
git checkout $BRANCH
263318
264319
- name: Install PHP with extensions
265320
uses: shivammathur/setup-php@v2
@@ -318,6 +373,17 @@ jobs:
318373
steps:
319374
- name: Checkout
320375
uses: actions/checkout@v5
376+
with:
377+
fetch-depth: 1
378+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
379+
380+
- name: Use local branch
381+
shell: bash
382+
run: |
383+
BRANCH=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.head_ref }}" || echo "${{ github.ref_name }}")
384+
git branch -D $BRANCH 2>/dev/null || true
385+
git branch $BRANCH HEAD
386+
git checkout $BRANCH
321387
322388
- name: Install PHP with extensions
323389
uses: shivammathur/setup-php@v2

0 commit comments

Comments
 (0)