Files
github-actions-magento2/get-magento-version
Damien Retzinger 87989bb250 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.
2026-05-06 14:03:19 -04:00
..
2026-02-18 14:43:05 -05:00

"Get Magento Version" Action

A Github Action that computes an installed Magento version.

Inputs

See the action.yml

Usage

name: Get Magento Version

on:
  push:
    branches:
    - main
  pull_request:
    branches:
    - main

jobs:
  version:
    runs-on: ubuntu-latest
    name: A job to compute an installed Magento version.
    steps:
      - uses: actions/checkout@v6
      - uses: graycoreio/github-actions-magento2/get-magento-version@main
        id: get-magento-version
      - run: echo version ${{ steps.get-magento-version.outputs.version }}
        shell: bash