From a2cae737a387d604cd34e3b53f01ce38f2c63d70 Mon Sep 17 00:00:00 2001 From: JM Faircloth Date: Wed, 5 Jul 2023 12:43:02 -0500 Subject: [PATCH] add debug --- integrationTests/e2e/e2e.test.js | 10 ++++++++++ src/action.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/integrationTests/e2e/e2e.test.js b/integrationTests/e2e/e2e.test.js index d608384..7e6a6a2 100644 --- a/integrationTests/e2e/e2e.test.js +++ b/integrationTests/e2e/e2e.test.js @@ -14,4 +14,14 @@ describe('e2e', () => { expect(process.env.JSONSTRINGMULTILINE).toBe('{"x":1,"y":"q\\nux"}'); expect(process.env.JSONDATA).toBe('{"x":1,"y":"qux"}'); }); + + it('verify jsonstring', () => { + expect(process.env.JSONSTRING).toBe('{"x":1,"y":"qux"}'); + }); + it('verify jsonstringmultiline', () => { + expect(process.env.JSONSTRINGMULTILINE).toBe('{"x":1,"y":"q\\nux"}'); + }); + it('verify jsondata', () => { + expect(process.env.JSONDATA).toBe('{"x":1,"y":"qux"}'); + }); }); diff --git a/src/action.js b/src/action.js index e193650..21ad578 100644 --- a/src/action.js +++ b/src/action.js @@ -107,7 +107,7 @@ async function exportSecrets() { for (const line of value.replace(/\r/g, '').split('\n')) { if (line.length > 0) { - core.setSecret(line); + core.setOutput(line); } } if (exportEnv) {