Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5ea1d95b70 |
@@ -7,6 +7,7 @@
|
|||||||
import { readdir } from "node:fs/promises";
|
import { readdir } from "node:fs/promises";
|
||||||
import { join } from "node:path";
|
import { join } from "node:path";
|
||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
|
import { dirName } from "@ark/fs";
|
||||||
import { type Inputs, main } from "./main.ts";
|
import { type Inputs, main } from "./main.ts";
|
||||||
import { createMcpServer } from "./mcp/server.ts";
|
import { createMcpServer } from "./mcp/server.ts";
|
||||||
import { log } from "./utils/cli.ts";
|
import { log } from "./utils/cli.ts";
|
||||||
@@ -38,10 +39,10 @@ async function printDirectoryTree(dir: string, prefix = "", rootDir = dir): Prom
|
|||||||
|
|
||||||
async function run(): Promise<void> {
|
async function run(): Promise<void> {
|
||||||
// Debug: Print current directory tree before changing directories
|
// Debug: Print current directory tree before changing directories
|
||||||
const cwd = process.cwd();
|
const actionDir = dirName();
|
||||||
log.info(`Current working directory: ${cwd}`);
|
log.info(`action dir: ${actionDir}`);
|
||||||
try {
|
try {
|
||||||
const tree = await printDirectoryTree(cwd);
|
const tree = await printDirectoryTree(actionDir);
|
||||||
log.info(`Directory tree:\n${tree}`);
|
log.info(`Directory tree:\n${tree}`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log.warning(
|
log.warning(
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pullfrog/action",
|
"name": "@pullfrog/action",
|
||||||
"version": "0.0.83",
|
"version": "0.0.84",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"files": [
|
"files": [
|
||||||
"index.js",
|
"index.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user