Skip to content

Commit

Permalink
log pwd
Browse files Browse the repository at this point in the history
  • Loading branch information
whitelisab committed Aug 7, 2024
1 parent 0c7c03e commit 43da030
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/app-review-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,23 @@ jobs:
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
const path = require('path');
// Get the current working directory
const currentWorkingDirectory = process.cwd();
console.log('Current working directory:', currentWorkingDirectory);
// List files and directories in the current directory
const files = fs.readdirSync(currentWorkingDirectory);
console.log('Files and directories in current working directory:');
files.forEach(file => {
const fullPath = path.join(currentWorkingDirectory, file);
const isDirectory = fs.statSync(fullPath).isDirectory();
console.log(`${isDirectory ? 'DIR ' : 'FILE'}: ${file}`);
});
const script = require('../.github/workflows/app-review-script.js')
await script({github, context, core})
Expand Down

0 comments on commit 43da030

Please sign in to comment.