Skip to content

Commit

Permalink
chore: add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tchoupinax committed Nov 27, 2024
1 parent 1a4009a commit 87eb6f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ async function main() {

try {
core.info(`Installing iggy:${version} and adding it to GitHub Actions Path`);

await setupBinary(version);

await startIggyServer();
core.info("Starting server...");
startIggyServer();
} catch (error) {
if (error instanceof Error) {
core.setFailed(error.message);
Expand Down
6 changes: 5 additions & 1 deletion src/start-server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import * as core from "@actions/core";

import { spawn } from "child_process";

export async function startIggyServer() {
export function startIggyServer() {
const iggy = spawn("iggy-server", [], { detached: true });
iggy.unref();

core.info("Starting started!");
}

0 comments on commit 87eb6f6

Please sign in to comment.