feat(get-magento-version): pull version from lockfile if it exists (#242)

Additionally, this exposes a new `output` called project which tells you which project was used.
This commit is contained in:
Damien Retzinger
2026-05-06 14:03:19 -04:00
committed by GitHub
parent bdb9528f8c
commit 87989bb250
2 changed files with 31 additions and 13 deletions
@@ -37,8 +37,13 @@ jobs:
with:
working-directory: ../magento2
- name: Fail if key does not match
- name: Fail if version does not match
if: steps.magento-version.outputs.version != '"2.4.5-p1"'
shell: bash
run: echo "${{ steps.magento-version.outputs.version }}" && exit 1
- name: Fail if project does not match
if: steps.magento-version.outputs.project != 'magento/project-community-edition'
shell: bash
run: echo "${{ steps.magento-version.outputs.project }}" && exit 1