mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user