From 639e5e2bb8de052a8664b1179378916e76f32581 Mon Sep 17 00:00:00 2001 From: Nathan Allen Date: Fri, 5 May 2023 12:45:11 -0400 Subject: [PATCH] Make vars available as action outputs --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 0c2e08b..11342a9 100644 --- a/index.js +++ b/index.js @@ -37,6 +37,8 @@ try { if (matches && matches.length > 0) { // This will also set process.env accordingly, so changes take effect for this script core.exportVariable(matches[1], matches[2]) + // Set the output variable for the action + core.setOutput(matches[1], matches[2]) console.log(`${matches[1]}=${matches[2]}`); } });