Files
github-actions-magento2/get-magento-version/README.md
T
Damien Retzinger 74f1e3ec39 docs: use x-release-please-version
release-please with x-release-please-major clobbered the magento2 -> magento8. This is obviously dumb.
2026-05-09 20:10:09 -04:00

643 B

"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@v7.0.0 # x-release-please-version
        id: get-magento-version
      - run: echo version ${{ steps.get-magento-version.outputs.version }}
        shell: bash