Skip to content

Commit 9d28598

Browse files
committed
- Fixing path to python scripts.
1 parent 51b8be3 commit 9d28598

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

dist/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26817,6 +26817,7 @@ var __webpack_exports__ = {};
2681726817
const path = __nccwpck_require__(1017);
2681826818
const { exec } = __nccwpck_require__(2081);
2681926819
const core = __nccwpck_require__(2186);
26820+
const fs = __nccwpck_require__(7147);
2682026821

2682126822
async function run() {
2682226823
try {
@@ -26826,6 +26827,19 @@ async function run() {
2682626827
const milestonesAsChapters = core.getInput('milestones-as-chapters');
2682726828
const repositories = core.getInput('repositories');
2682826829

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+
2682926843
// Construct the path to the Python script
2683026844
const scriptPath = __nccwpck_require__.ab + "controller.py";
2683126845

src/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const path = require('path');
22
const { exec } = require('child_process');
33
const core = require('@actions/core');
4+
const fs = require('fs');
45

56
async function run() {
67
try {
@@ -10,6 +11,19 @@ async function run() {
1011
const milestonesAsChapters = core.getInput('milestones-as-chapters');
1112
const repositories = core.getInput('repositories');
1213

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+
1327
// Construct the path to the Python script
1428
const scriptPath = path.join(__dirname, 'controller.py');
1529

0 commit comments

Comments
 (0)