Skip to content

Commit 94085ce

Browse files
committed
Only expose ACTIONS_ vars
1 parent a2bdf91 commit 94085ce

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

dist/index.js

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/github.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import * as core from '@actions/core';
22

33
export async function exposeRuntime() {
44
Object.keys(process.env).forEach(function (key) {
5-
core.info(`${key}=${process.env[key]}`);
6-
core.exportVariable(key, process.env[key]);
5+
if (key.startsWith('ACTIONS_')) {
6+
core.info(`${key}=${process.env[key]}`);
7+
core.exportVariable(key, process.env[key]);
8+
}
79
});
810
}

0 commit comments

Comments
 (0)