refactor(cache-magento): extract key computation into a script (#245)

This commit is contained in:
Damien Retzinger
2026-05-09 15:37:28 -04:00
parent c53607cca8
commit 44e7c34892
4 changed files with 80 additions and 1 deletions
+11 -1
View File
@@ -31,11 +31,21 @@ runs:
name: Compute Composer Version
id: cache-magento-get-composer-version
- name: Compute cache keys
id: cache-magento-keys
shell: bash
run: |
bash "${{ github.action_path }}/compute-cache-keys.sh" \
"${{ inputs.composer_cache_key }}" \
"${{ steps.cache-magento-get-php-version.outputs.version }}" \
"${{ steps.cache-magento-get-composer-version.outputs.version }}" \
>> $GITHUB_OUTPUT
- name: "Cache Composer Packages"
uses: actions/cache@v5
id: cache-magento-cache
with:
key: "composer | v5.8 | ${{ inputs.composer_cache_key }} | ${{ steps.cache-magento-get-composer-version.outputs.version }} | ${{ steps.cache-magento-get-php-version.outputs.version }}"
key: ${{ steps.cache-magento-keys.outputs.download-key }}
path: ${{ steps.cache-magento-composer-cache.outputs.dir }}
branding: