mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user