mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
fix(check-extension): prevent recursively mirroring _ghamagento into _ghamagento
This commit is contained in:
@@ -68,6 +68,14 @@ jobs:
|
|||||||
id: package
|
id: package
|
||||||
run: echo "name=$(jq -r .name ${{ github.workspace }}/${{ inputs.path }}/composer.json)" >> $GITHUB_OUTPUT
|
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
|
- name: Require extension
|
||||||
working-directory: ${{ steps.setup-magento.outputs.path }}
|
working-directory: ${{ steps.setup-magento.outputs.path }}
|
||||||
run: composer require "${{ steps.package.outputs.name }}:@dev" --no-install
|
run: composer require "${{ steps.package.outputs.name }}:@dev" --no-install
|
||||||
@@ -133,6 +141,14 @@ jobs:
|
|||||||
id: package
|
id: package
|
||||||
run: echo "name=$(jq -r .name ${{ github.workspace }}/${{ inputs.path }}/composer.json)" >> $GITHUB_OUTPUT
|
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
|
- name: Require extension
|
||||||
working-directory: ${{ steps.setup-magento.outputs.path }}
|
working-directory: ${{ steps.setup-magento.outputs.path }}
|
||||||
run: composer require "${{ steps.package.outputs.name }}:@dev" --no-install
|
run: composer require "${{ steps.package.outputs.name }}:@dev" --no-install
|
||||||
@@ -209,6 +225,14 @@ jobs:
|
|||||||
id: package
|
id: package
|
||||||
run: echo "name=$(jq -r .name ${{ github.workspace }}/${{ inputs.path }}/composer.json)" >> $GITHUB_OUTPUT
|
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
|
- name: Require extension
|
||||||
working-directory: ${{ steps.setup-magento.outputs.path }}
|
working-directory: ${{ steps.setup-magento.outputs.path }}
|
||||||
run: composer require "${{ steps.package.outputs.name }}:@dev" --no-install
|
run: composer require "${{ steps.package.outputs.name }}:@dev" --no-install
|
||||||
|
|||||||
Reference in New Issue
Block a user