mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
feat(get-magento-version): emit supported-version project name as an output
This commit is contained in:
@@ -16,5 +16,13 @@ PRODUCT=$(echo "${RESULT:-}" | awk '{print $1}')
|
||||
VERSION=$(echo "${RESULT:-}" | awk '{print $2}' | sed 's/^v//')
|
||||
PROJECT=$(echo "$PRODUCT" | sed 's/product-/project-/')
|
||||
|
||||
case "$PROJECT" in
|
||||
magento/*) SUPPORTED_VERSION_PROJECT="magento-open-source" ;;
|
||||
mage-os/project-community-edition) SUPPORTED_VERSION_PROJECT="mage-os" ;;
|
||||
mage-os/project-minimal-edition) SUPPORTED_VERSION_PROJECT="mage-os-minimal" ;;
|
||||
*) SUPPORTED_VERSION_PROJECT="" ;;
|
||||
esac
|
||||
|
||||
echo "version=\"$VERSION\""
|
||||
echo "project=$PROJECT"
|
||||
echo "supported_version_project=$SUPPORTED_VERSION_PROJECT"
|
||||
|
||||
Reference in New Issue
Block a user