From 54b437b0a086b72da72fa84fd2ef6eb5bc045386 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 3 Nov 2023 15:09:11 +0100 Subject: [PATCH] also output min/max php/branch --- dist/index.js | 4 ++++ src/action.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/dist/index.js b/dist/index.js index f7f848c..aec4c06 100644 --- a/dist/index.js +++ b/dist/index.js @@ -38888,6 +38888,10 @@ function onlyUnique(value, index, array) { core.setOutput("branches", JSON.stringify(branches)); core.setOutput("ocp-branches", JSON.stringify(branches.map(branch => `dev-${branch}`))); core.setOutput("php-versions", JSON.stringify(php)); + core.setOutput("php-min", JSON.stringify([phpMin])); + core.setOutput("php-max", JSON.stringify([phpMax])); + core.setOutput("branches-min", JSON.stringify([branches[0]])); + core.setOutput("branches-max", JSON.stringify([branches.pop()])); core.setOutput("matrix", JSON.stringify({ include: matrix })); diff --git a/src/action.js b/src/action.js index 3828931..14fd1db 100644 --- a/src/action.js +++ b/src/action.js @@ -100,6 +100,10 @@ function onlyUnique(value, index, array) { core.setOutput("branches", JSON.stringify(branches)); core.setOutput("ocp-branches", JSON.stringify(branches.map(branch => `dev-${branch}`))); core.setOutput("php-versions", JSON.stringify(php)); + core.setOutput("php-min", JSON.stringify([phpMin])); + core.setOutput("php-max", JSON.stringify([phpMax])); + core.setOutput("branches-min", JSON.stringify([branches[0]])); + core.setOutput("branches-max", JSON.stringify([branches.pop()])); core.setOutput("matrix", JSON.stringify({ include: matrix }));