name: "Get Magento Version" author: "Graycore" description: " A Github Action that determines the currently installed version of Magento" inputs: working-directory: default: $GITHUB_WORKSPACE description: "The current working directory of the action" required: false outputs: version: description: 'The resolved Magento version (e.g. 2.4.6-p14)' value: ${{ steps.get-magento-version.outputs.version }} project: description: 'The Magento project package name (e.g. magento/project-community-edition)' value: ${{ steps.get-magento-version.outputs.project }} supported_version_project: description: 'The `project` value to pass to the supported-version action (e.g. `magento-open-source`, `mage-os`, `mage-os-minimal`). Empty when no Magento project is detected.' value: ${{ steps.get-magento-version.outputs.supported_version_project }} runs: using: "composite" steps: - name: Compute Installed Magento version id: get-magento-version shell: bash run: bash "${{ github.action_path }}/get-magento-version.sh" "${{ inputs.working-directory }}" >> $GITHUB_OUTPUT branding: icon: "code" color: "green"