MCPcopy Create free account
hub / github.com/github/gh-aw / isDebugModeEnabled

Function isDebugModeEnabled

actions/setup/post.js:16–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14const fs = require("fs");
15
16function isDebugModeEnabled() {
17 const toBool = value => {
18 const normalized = String(value || "").toLowerCase();
19 return normalized === "1" || normalized === "true";
20 };
21 return toBool(process.env.RUNNER_DEBUG) || toBool(process.env.ACTIONS_STEP_DEBUG);
22}
23
24function listTmpGhAwFiles(tmpDir, maxDepth, maxFiles) {
25 if (!fs.existsSync(tmpDir)) {

Callers 1

post.jsFile · 0.85

Calls 1

toBoolFunction · 0.85

Tested by

no test coverage detected