Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 602 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 602 Bytes

"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@v3
      - uses: mage-os/github-actions/get-magento-version@main
        id: get-magento-version
      - run: echo version ${{ steps.get-magento-version.outputs.version }}
        shell: bash