Skip to content

Commit 22806ef

Browse files
committed
Fix for CI-failures
1 parent 96608e8 commit 22806ef

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/php.yml

Lines changed: 37 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,15 @@ 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+
run: |
151+
ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
152+
if [ -z "$ROOT_VERSION" ]; then
153+
echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
154+
exit 1
155+
fi
156+
echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$GITHUB_ENV"
157+
139158
- name: Cache composer dependencies
140159
uses: actions/cache@v5
141160
with:
@@ -174,6 +193,15 @@ jobs:
174193
- name: Get composer cache directory
175194
run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
176195

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

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

0 commit comments

Comments
 (0)