Skip to content

Commit 2b5efaa

Browse files
debug check directory struct
1 parent d848e8a commit 2b5efaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

danger/dangerfile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const { getFlavorConfig, extractPRFlavor } = require('./dangerfile-utils.js');
2+
const fs = require('fs');
23

34
const headRepoName = danger.github.pr.head.repo.git_url;
45
const baseRepoName = danger.github.pr.base.repo.git_url;
@@ -191,6 +192,8 @@ async function CheckFromExternalChecks() {
191192
// Priority: EXTRA_DANGERFILE (absolute path) -> EXTRA_DANGERFILE_INPUT (relative path)
192193
const customPath = process.env.EXTRA_DANGERFILE || process.env.EXTRA_DANGERFILE_INPUT;
193194
console.log(`::debug:: Checking from external checks: ${customPath}`);
195+
warn(`::debug:: Current directory contents: ${fs.readdirSync('./').join(', ')}`);
196+
warn(`::debug:: Workspace directory contents: ${fs.readdirSync('/github/workspace').join(', ')}`);
194197
if (customPath) {
195198
try {
196199

0 commit comments

Comments
 (0)