File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -26817,6 +26817,7 @@ var __webpack_exports__ = {};
26817
26817
const path = __nccwpck_require__(1017);
26818
26818
const { exec } = __nccwpck_require__(2081);
26819
26819
const core = __nccwpck_require__(2186);
26820
+ const fs = __nccwpck_require__(7147);
26820
26821
26821
26822
async function run() {
26822
26823
try {
@@ -26826,6 +26827,19 @@ async function run() {
26826
26827
const milestonesAsChapters = core.getInput('milestones-as-chapters');
26827
26828
const repositories = core.getInput('repositories');
26828
26829
26830
+ const currentDir = __dirname;
26831
+ console.log(`Current directory: ${currentDir}`);
26832
+ fs.readdir(currentDir, (err, files) => {
26833
+ if (err) {
26834
+ core.setFailed(`Unable to scan directory: ${err}`);
26835
+ } else {
26836
+ core.info('Directory contents:');
26837
+ files.forEach(file => {
26838
+ core.info(file);
26839
+ });
26840
+ }
26841
+ });
26842
+
26829
26843
// Construct the path to the Python script
26830
26844
const scriptPath = __nccwpck_require__.ab + "controller.py";
26831
26845
Original file line number Diff line number Diff line change 1
1
const path = require ( 'path' ) ;
2
2
const { exec } = require ( 'child_process' ) ;
3
3
const core = require ( '@actions/core' ) ;
4
+ const fs = require ( 'fs' ) ;
4
5
5
6
async function run ( ) {
6
7
try {
@@ -10,6 +11,19 @@ async function run() {
10
11
const milestonesAsChapters = core . getInput ( 'milestones-as-chapters' ) ;
11
12
const repositories = core . getInput ( 'repositories' ) ;
12
13
14
+ const currentDir = __dirname ;
15
+ console . log ( `Current directory: ${ currentDir } ` ) ;
16
+ fs . readdir ( currentDir , ( err , files ) => {
17
+ if ( err ) {
18
+ core . setFailed ( `Unable to scan directory: ${ err } ` ) ;
19
+ } else {
20
+ core . info ( 'Directory contents:' ) ;
21
+ files . forEach ( file => {
22
+ core . info ( file ) ;
23
+ } ) ;
24
+ }
25
+ } ) ;
26
+
13
27
// Construct the path to the Python script
14
28
const scriptPath = path . join ( __dirname , 'controller.py' ) ;
15
29
You can’t perform that action at this time.
0 commit comments