Skip to content

Commit 5441d02

Browse files
committed
fix: inherit process.env in restyle process
This allows `restyle` to look at thing such as `GITHUB_ACTIONS` to modify it's behavior when being run in this context. This can be useful to adjust logging, since the ANSI support isn't exactly the same.
1 parent a388ba0 commit 5441d02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: run/src/main.ts

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ async function run() {
5858

5959
const ec = await exec.exec("restyle", args, {
6060
env: {
61+
...process.env,
6162
GITHUB_TOKEN: inputs.githubToken,
6263
GIT_AUTHOR_EMAIL: inputs.committerEmail,
6364
GIT_AUTHOR_NAME: inputs.committerName,

0 commit comments

Comments
 (0)