Skip to content

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

License

Notifications You must be signed in to change notification settings

actions-matrix/release-matrix-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks