7979 - name : Get composer cache directory
8080 run : echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
8181
82+ - name : Get COMPOSER_ROOT_VERSION from composer.json branch alias
83+ run : |
84+ ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
85+ if [ -z "$ROOT_VERSION" ]; then
86+ echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
87+ exit 1
88+ fi
89+ echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$GITHUB_ENV"
90+
8291 - name : Cache composer dependencies
8392 uses : actions/cache@v5
8493 with :
@@ -141,6 +150,16 @@ jobs:
141150 - name : Get composer cache directory
142151 run : echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$env:GITHUB_ENV"
143152
153+ - name : Get COMPOSER_ROOT_VERSION from composer.json branch alias
154+ shell : bash
155+ run : |
156+ ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
157+ if [ -z "$ROOT_VERSION" ]; then
158+ echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
159+ exit 1
160+ fi
161+ echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$GITHUB_ENV"
162+
144163 - name : Cache composer dependencies
145164 uses : actions/cache@v5
146165 with :
@@ -184,6 +203,15 @@ jobs:
184203 - name : Get composer cache directory
185204 run : echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
186205
206+ - name : Get COMPOSER_ROOT_VERSION from composer.json branch alias
207+ run : |
208+ ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
209+ if [ -z "$ROOT_VERSION" ]; then
210+ echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
211+ exit 1
212+ fi
213+ echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$GITHUB_ENV"
214+
187215 - name : Cache composer dependencies
188216 uses : actions/cache@v5
189217 with :
@@ -205,7 +233,8 @@ jobs:
205233 composer-unused \
206234 --excludePackage=simplesamlphp/simplesamlphp-assets-base \
207235 --excludePackage=symfony/expression-language \
208- --excludePackage=symfony/polyfill-intl-icu
236+ --excludePackage=symfony/polyfill-intl-icu \
237+ --excludePackage=symfony/yaml
209238
210239 - name : PHP Code Sniffer
211240 run : vendor/bin/phpcs
@@ -248,6 +277,15 @@ jobs:
248277 - name : Get composer cache directory
249278 run : echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
250279
280+ - name : Get COMPOSER_ROOT_VERSION from composer.json branch alias
281+ run : |
282+ ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
283+ if [ -z "$ROOT_VERSION" ]; then
284+ echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
285+ exit 1
286+ fi
287+ echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$GITHUB_ENV"
288+
251289 - name : Cache composer dependencies
252290 uses : actions/cache@v5
253291 with :
0 commit comments