-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
130 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-action.json | ||
|
||
name: Setup SwagPayPal | ||
description: "Setup steps for SwagPayPal" | ||
author: "shopware AG" | ||
branding: | ||
color: "blue" | ||
icon: "download" | ||
|
||
inputs: | ||
install-admin: | ||
default: "true" | ||
required: false | ||
description: "Should we install the Administration of shopware" | ||
install-commercial: | ||
default: "false" | ||
required: false | ||
description: "Should we install SwagCommercial" | ||
install-storefront: | ||
default: "true" | ||
required: false | ||
description: "Should we install the Storefront of shopware" | ||
mysql-version: | ||
default: "builtin" | ||
required: false | ||
description: "Which MySQL version should be used" | ||
php-version: | ||
default: "8.2" | ||
required: false | ||
description: "Which PHP version should be used" | ||
shopware-version: | ||
default: "trunk" | ||
required: false | ||
description: "Which version/branch of shopware should be used" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: octo-sts/action@main | ||
id: octo-sts | ||
with: | ||
scope: shopware | ||
identity: ${{ github.event.repository.name }} | ||
- name: Prepare dependency list | ||
id: dependency-list | ||
shell: bash | ||
run: | | ||
DEPS='[ | ||
{ | ||
"name":"SwagCmsExtensions", | ||
"repo": "https://github.com/shopware/SwagCmsExtensions.git", | ||
"token": "${{ steps.octo-sts.outputs.token }}" | ||
} | ||
]' | ||
REPOS='{ | ||
"${{ github.event.repository.name }}": { | ||
"type": "path", | ||
"url": "custom/plugins/${{ github.event.repository.name }}", | ||
"symlink": true | ||
}, | ||
"SwagCmsExtensions": { | ||
"type": "path", | ||
"url": "custom/plugins/SwagCmsExtensions", | ||
"symlink": true | ||
} | ||
}' | ||
if [[ "${{ inputs.install-commercial }}" == "true" ]]; then | ||
DEPS=$(jq -s 'add' <(echo $DEPS) <(echo '[ | ||
{ | ||
"name":"SwagCommercial", | ||
"repo": "https://github.com/shopware/SwagCommercial.git", | ||
"branch": "${{ matrix.PLATFORM_BRANCH }}", | ||
"token": "${{ steps.octo-sts.outputs.token }}" | ||
}]')) | ||
REPOS=$(jq -s 'add' <(echo $REPOS) <(echo '{ | ||
"SwagCommercial": { | ||
"type": "path", | ||
"url": "custom/plugins/SwagCommercial", | ||
"symlink": true | ||
} | ||
}')) | ||
fi | ||
echo "deps=$(echo $DEPS | jq -c .)" >> "$GITHUB_OUTPUT" | ||
echo "repos=$(echo $REPOS | jq -c .)" >> "$GITHUB_OUTPUT" | ||
- uses: shopware/github-actions/setup-extension@main | ||
with: | ||
extensionName: ${{ github.event.repository.name }} | ||
mysqlVersion: ${{ inputs.mysql-version }} | ||
shopwareVersion: ${{ inputs.shopware-version }} | ||
phpVersion: ${{ inputs.php-version }} | ||
install: true | ||
install-admin: ${{ inputs.install-admin }} | ||
install-storefront: ${{ inputs.install-storefront }} | ||
dependencies: ${{ steps.dependency-list.outputs.deps }} | ||
extraRepositories: ${{ steps.dependency-list.outputs.repos }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters