feat(get-magento-version): add get-magento-version action (#72)

This commit is contained in:
Damien Retzinger
2022-10-14 11:07:30 -04:00
committed by GitHub
parent 158bd0b0c8
commit fd858c3063
4 changed files with 109 additions and 2 deletions
+32
View File
@@ -0,0 +1,32 @@
# "Get Magento Version" Action
A Github Action that computes an installed Magento version.
## Inputs
See the [action.yml](./action.yml)
## Usage
```yml
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: graycoreio/github-actions-magento2/get-magento-version@main
id: get-magento-version
- run: echo version ${{ steps.get-magento-version.outputs.version }}
shell: bash
```