feat(setup-magento): prevent Magento dir from being mirrored into vendor

This commit is contained in:
Damien Retzinger
2026-05-10 13:30:54 -04:00
parent b0131f0fa0
commit 22627e1000
2 changed files with 16 additions and 24 deletions
-24
View File
@@ -68,14 +68,6 @@ jobs:
id: package
run: echo "name=$(jq -r .name ${{ github.workspace }}/${{ inputs.path }}/composer.json)" >> $GITHUB_OUTPUT
- name: Exclude store dir from path-repo copy
shell: bash
run: |
EXT_COMPOSER="${{ github.workspace }}/${{ inputs.path }}/composer.json"
tmp="$(mktemp)"
jq '.archive.exclude = ((.archive.exclude // []) + ["/_ghamagento"] | unique)' "$EXT_COMPOSER" > "$tmp"
mv "$tmp" "$EXT_COMPOSER"
- name: Require extension
working-directory: ${{ steps.setup-magento.outputs.path }}
run: composer require "${{ steps.package.outputs.name }}:@dev" --no-install
@@ -141,14 +133,6 @@ jobs:
id: package
run: echo "name=$(jq -r .name ${{ github.workspace }}/${{ inputs.path }}/composer.json)" >> $GITHUB_OUTPUT
- name: Exclude store dir from path-repo copy
shell: bash
run: |
EXT_COMPOSER="${{ github.workspace }}/${{ inputs.path }}/composer.json"
tmp="$(mktemp)"
jq '.archive.exclude = ((.archive.exclude // []) + ["/_ghamagento"] | unique)' "$EXT_COMPOSER" > "$tmp"
mv "$tmp" "$EXT_COMPOSER"
- name: Require extension
working-directory: ${{ steps.setup-magento.outputs.path }}
run: composer require "${{ steps.package.outputs.name }}:@dev" --no-install
@@ -225,14 +209,6 @@ jobs:
id: package
run: echo "name=$(jq -r .name ${{ github.workspace }}/${{ inputs.path }}/composer.json)" >> $GITHUB_OUTPUT
- name: Exclude store dir from path-repo copy
shell: bash
run: |
EXT_COMPOSER="${{ github.workspace }}/${{ inputs.path }}/composer.json"
tmp="$(mktemp)"
jq '.archive.exclude = ((.archive.exclude // []) + ["/_ghamagento"] | unique)' "$EXT_COMPOSER" > "$tmp"
mv "$tmp" "$EXT_COMPOSER"
- name: Require extension
working-directory: ${{ steps.setup-magento.outputs.path }}
run: composer require "${{ steps.package.outputs.name }}:@dev" --no-install