5
0
Fork 0
mirror of https://github.com/hashicorp/vault-action.git synced 2025-11-07 15:16:56 +00:00

add debug

This commit is contained in:
JM Faircloth 2023-07-05 12:43:02 -05:00
parent b536ec9ec6
commit a2cae737a3
2 changed files with 11 additions and 1 deletions

View file

@ -14,4 +14,14 @@ describe('e2e', () => {
expect(process.env.JSONSTRINGMULTILINE).toBe('{"x":1,"y":"q\\nux"}'); expect(process.env.JSONSTRINGMULTILINE).toBe('{"x":1,"y":"q\\nux"}');
expect(process.env.JSONDATA).toBe('{"x":1,"y":"qux"}'); 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"}');
});
}); });

View file

@ -107,7 +107,7 @@ async function exportSecrets() {
for (const line of value.replace(/\r/g, '').split('\n')) { for (const line of value.replace(/\r/g, '').split('\n')) {
if (line.length > 0) { if (line.length > 0) {
core.setSecret(line); core.setOutput(line);
} }
} }
if (exportEnv) { if (exportEnv) {