mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
5608271fe3
* fix: remove versions dependent on EOL composer 1 * Restore composer 1 versions * Add `usable` version type, filtered by code constraints * Added code comment * Rebuilt index.js with latest changes merged * Updated documentation
42 lines
1.6 KiB
YAML
42 lines
1.6 KiB
YAML
name: "Compute Supported Mage-OS and Magento 2 Versions"
|
|
author: "Mage-OS"
|
|
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`, `usable`, `nightly`, `recent` and `all`"
|
|
default: "currently-supported"
|
|
project:
|
|
required: false
|
|
description: "The project to return the supported versions for. Allowed values are `mage-os` and `magento-open-source`"
|
|
# The default value is what it is to keep backward compatibility
|
|
default: "magento-open-source"
|
|
custom_versions:
|
|
required: false
|
|
description: "The specific custom versions of Magento that you want to use. Only applies when `kind` is `custom`"
|
|
default: ""
|
|
|
|
recent_time_frame:
|
|
required: false
|
|
default: "2y"
|
|
description: "The time frame (from today). Only used in `recent` kind. String that defines a time duration using a combination of years (y), months (m), and days (d). Each unit is optional and can appear in any order, separated by spaces. For example `2y 2m 2d`. "
|
|
|
|
include_services:
|
|
required: false
|
|
default: "false"
|
|
description: "Whether to include a `services` key in each matrix entry with GitHub Actions service configurations."
|
|
|
|
outputs:
|
|
matrix:
|
|
description: "The Github Actions matrix of software technologies required to run Magento."
|
|
value: ${{ steps.generate.outputs.matrix }}
|
|
|
|
runs:
|
|
using: "node24"
|
|
main: dist/index.js
|
|
|
|
branding:
|
|
icon: "code"
|
|
color: "green"
|