GitHub Action to generate matrix using endoflife-date/release-data dataset.
search
: The search keyword for release datadate
: Set the filter for the release by date, e.g: 2023-01-01, 2023, >=2023version
: Set the filter for the release by version, e.g: 1.0limit
: Set the limit for the number of releases to output
matrix
: The matrix of releases
// nginx matrix
{
"versions": [ "1.25.4", "1.25.5", "1.26.0", "1.26.1", "1.27.0" ]
}
You can now consume the action by referencing the v2
branch
name: Build
on:
push:
branches:
- main
jobs:
generate:
runs-on: ubuntu-latest
steps:
- id: release
uses: actions-matrix/release-matrix-action@v2
with:
search: "nginx"
outputs:
matrix: ${{ steps.release.outputs.matrix }}
build:
runs-on: ubuntu-latest
needs: generate
strategy:
matrix: ${{ fromJson(needs.generate.outputs.matrix) }}
steps:
- run: echo "Build ${{ matrix.version }}"
Screenshots
Licensed under the MIT License.