Skip to content

Commit a06bbcd

Browse files
committed
Attempted build-fix
1 parent d03bf76 commit a06bbcd

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/php.yml

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

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

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+
140158
- name: Cache composer dependencies
141159
uses: actions/cache@v5
142160
with:
@@ -175,6 +193,15 @@ jobs:
175193
- name: Get composer cache directory
176194
run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
177195

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+
178205
- name: Cache composer dependencies
179206
uses: actions/cache@v5
180207
with:
@@ -229,6 +256,15 @@ jobs:
229256
- name: Get composer cache directory
230257
run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
231258

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+
232268
- name: Cache composer dependencies
233269
uses: actions/cache@v5
234270
with:

0 commit comments

Comments
 (0)