Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit 74927a8

Browse files
make it pipe the git output to the console
1 parent b56a376 commit 74927a8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ windows (and hopefully macos too but I didn't test that).
66

77
usage sample:
88
```
9-
uses: snickerbockers/submodules-init@v3
9+
uses: snickerbockers/submodules-init@v4
1010
```

index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ const git = require("simple-git");
55
async function run() {
66
try {
77
console.log("checking out submodules...");
8-
await git().raw(['submodule', 'update', '--init', '--recursive']);
9-
console.log("done checking out submodules");
8+
git().outputHandler((command, stdout, stderr) => {stdout.pipe(process.stdout), stderr.pipe(process.stderr)}).submoduleUpdate(['--init', '--recursive'], () => console.log("done checking out submodules"));
109
}
1110
catch (error) {
1211
core.setFailed(error.message);

0 commit comments

Comments
 (0)