Skip to content
tag

GitHub Action

release-matrix-action

v1.0.6 Latest version

release-matrix-action

tag

release-matrix-action

GitHub Action to generate matrix using "endoflife-date/release-data" dataset

Installation

Copy and paste the following snippet into your .yml file.

              

- name: release-matrix-action

uses: actions-matrix/release-matrix-action@v1.0.6

Learn more about this action in actions-matrix/release-matrix-action

Choose a version

About

units-test

GitHub Action to generate matrix using endoflife-date/release-data dataset.

Inputs

  • search: The search keyword for release data
  • date: Set the filter for the release by date, e.g: 2023-01-01, 2023, >=2023
  • version: Set the filter for the release by version, e.g: 1.0
  • limit: Set the limit for the number of releases to output

Outputs

  • matrix: The matrix of releases
// nginx matrix
{
  "versions": [ "1.25.4", "1.25.5", "1.26.0", "1.26.1", "1.27.0" ]
}

Example

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

Screenshot

License

Licensed under the MIT License.