mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
b645c2327d
fix: pass correct repo url for nightly The amendMatrixForNext function uses the repository argument to determine the version constraint for the returned matrix for kind nightly. Previously, the upstream-mirror repo url was passed as an argument, but the nightly builds use a different repo url. This resulted in failed builds, because the version string 'next' could not be parsed by composer. Example: https://github.com/mage-os/generate-mirror-repo-js/actions/runs/6370219504/job/17291152703 With this change, the nightly kind will always return the @alpha version constraint, that is, stability constraint. There currently is no way to distinguish between different nightly repos, but since both work the same way, this is fine (for now).
Magento 2 Supported Versions
A GitHub Action that computes the currently supported GitHub Actions Matrix for Magento 2 Versions
All data comes from:
Inputs
See the action.yml
| Input | Description | Required | Default |
|---|---|---|---|
| kind | The "kind" of support you're targeting for your package. Allowed values are currently-supported, latest, custom, nightly and all |
false | 'currently-supported' |
| project | The project to return the supported versions for. Allowed values are mage-os and magento-open-source |
false | 'magento-open-source' |
| custom_versions | The versions you want to support, as a comma-separated string, i.e. 'magento/project-community-edition:2.3.7-p3, magento/project-community-edition:2.4.2-p2' | false | '' |
Kinds
currently-supported- The currently supported Magento Open Source versions by Adobe.latest- The latest version of Magento only.custom- A custom subset of the versions, as specified by you. Requirescustom_versionssibling key.nightly- The nightly version of Magento (only available viahttps://upstream-nightly.mage-os.org)all- All versions of Magento (including patched/unpatched versions).
Projects
mage-osmagento-open-source(default)
Usage
name: Use Supported Versions
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
compute_matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.supported-version.outputs.matrix }}
steps:
- uses: mage-os/github-actions/supported-version@main
id: supported-version
- run: echo ${{ steps.supported-version.outputs.matrix }}