diff --git a/index.js b/index.js index 983b3e7..e0a6736 100644 --- a/index.js +++ b/index.js @@ -35,7 +35,9 @@ async function loadData(variables){ core.warning(`Variable ${v} not found`) } core.setOutput(v, data); - core.exportVariable(v, data) + core.exportVariable(v, data); + // store the same data with a fixed prefix so it can be iterated over if needed + core.exportVariable(`persist-action-data-${v}`, data); } } diff --git a/out/index.js b/out/index.js index 2c53aa1..cf65d83 100644 --- a/out/index.js +++ b/out/index.js @@ -1495,7 +1495,9 @@ async function loadData(variables){ core.warning(`Variable ${v} not found`) } core.setOutput(v, data); - core.exportVariable(v, data) + core.exportVariable(v, data); + // store the same data with a fixed prefix so it can be iterated over if needed + core.exportVariable(`persist-action-data-${v}`, data); } }