Skip to content

Commit 8b1f3f1

Browse files
committed
Fix for CI-failures
1 parent 96608e8 commit 8b1f3f1

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/php.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ jobs:
7474
- name: Get composer cache directory
7575
run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
7676

77+
78+
- name: Get COMPOSER_ROOT_VERSION from composer.json branch alias
79+
run: |
80+
ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
81+
if [ -z "$ROOT_VERSION" ]; then
82+
echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
83+
exit 1
84+
fi
85+
echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$GITHUB_ENV"
86+
7787
- name: Cache composer dependencies
7888
uses: actions/cache@v5
7989
with:
@@ -136,6 +146,16 @@ jobs:
136146
- name: Get composer cache directory
137147
run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$env:GITHUB_ENV"
138148

149+
- name: Get COMPOSER_ROOT_VERSION from composer.json branch alias
150+
shell: bash
151+
run: |
152+
ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
153+
if [ -z "$ROOT_VERSION" ]; then
154+
echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
155+
exit 1
156+
fi
157+
echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$env:GITHUB_ENV"
158+
139159
- name: Cache composer dependencies
140160
uses: actions/cache@v5
141161
with:
@@ -174,6 +194,15 @@ jobs:
174194
- name: Get composer cache directory
175195
run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
176196

197+
- name: Get COMPOSER_ROOT_VERSION from composer.json branch alias
198+
run: |
199+
ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
200+
if [ -z "$ROOT_VERSION" ]; then
201+
echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
202+
exit 1
203+
fi
204+
echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$GITHUB_ENV"
205+
177206
- name: Cache composer dependencies
178207
uses: actions/cache@v5
179208
with:
@@ -228,6 +257,15 @@ jobs:
228257
- name: Get composer cache directory
229258
run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
230259

260+
- name: Get COMPOSER_ROOT_VERSION from composer.json branch alias
261+
run: |
262+
ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
263+
if [ -z "$ROOT_VERSION" ]; then
264+
echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
265+
exit 1
266+
fi
267+
echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$GITHUB_ENV"
268+
231269
- name: Cache composer dependencies
232270
uses: actions/cache@v5
233271
with:

0 commit comments

Comments
 (0)