Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
tag

GitHub Action

release-matrix-action

v1.0.3

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.3

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

Choose a version

release-matrix-action

units-test

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

Usage

You can now consume the action by referencing the v1 branch

name: Build

on:
  push:
    branches:
      - main

jobs:
  generate:
    runs-on: ubuntu-latest
    steps:
      - id: release
        uses: actions-matrix/release-matrix-action@v1
        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 }}"

Example

Screenshot

Inputs

  • search: The search keyword for release data
  • date: Set the filter for the release by date, e.g: 2023-01-01, 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, default: 3

Outputs

  • matrix: The matrix of releases

Example

{"version":["1.23.3","1.23.4","1.24.0","1.25.0","1.25.1"]}

License

Licensed under the MIT License.