feat(supported-version): add user-defined kind (#28)

`kind` is a new input property for the `supported-version` action which
allows one to define what specific versions of Magento they support.

Currently, `kind` supports `latest`, `currently-supported`, and `custom`. See the
README for `supported-version` if you want more specifics
This commit is contained in:
Damien Retzinger
2022-08-05 17:36:38 -04:00
committed by GitHub
parent 97b4223c0c
commit 664360ede2
22 changed files with 7289 additions and 115 deletions
+14 -9
View File
@@ -1,6 +1,16 @@
name: "Compute Supported Magento 2 Versions"
author: "Graycore"
description: "A Github Action that computes the Github Actions matrix for the currently supported versions of Magento 2"
description: "A Github Action that computes the Github Actions matrix for the chosen versions of Magento 2"
inputs:
kind:
required: false
description: "The kind of versions you want to return. Allowed values are `currently-supported, latest, custom`"
default: "currently-supported"
custom_versions:
required: false
description: "The specific custom versions of Magento that you want to use. Only applies when `kind` is `custom`"
default: ""
outputs:
matrix:
@@ -8,14 +18,9 @@ outputs:
value: ${{ steps.generate.outputs.matrix }}
runs:
using: 'composite'
steps:
- run: |
content=`cat ${{ github.action_path }}/supported.json | jq -c`
echo "::set-output name=matrix::$content"
shell: bash
id: generate
using: "node16"
main: dist/index.js
branding:
icon: "code"
color: "green"