Skip to content

Commit 4ddedae

Browse files
committed
A
1 parent 75cb5b4 commit 4ddedae

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

dist/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754867,6 +754867,13 @@ const path = __nccwpck_require__(16928);
754867754867
const { main: pushMain } = __nccwpck_require__(12533);
754868754868
const { fetchSheetData: pullMain } = __nccwpck_require__(19868);
754869754869

754870+
// Function to list the contents of the root folder
754871+
const listRootFolderContents = () => {
754872+
const rootFolder = process.cwd();
754873+
const files = fs.readdirSync(rootFolder);
754874+
core.info(`Root folder contents: ${files.join(', ')}`);
754875+
};
754876+
754870754877
// Get inputs
754871754878
const action = core.getInput('action');
754872754879
const googleApiKeyJsonRaw = core.getInput('google_api_key_json');
@@ -754903,6 +754910,9 @@ core.info(`Google API Key JSON: ${googleApiKeyJson ? 'Provided' : 'Not Provided'
754903754910
core.info(`Spreadsheet ID: ${spreadsheetId}`);
754904754911
core.info(`Localization Root: ${localizationRoot}`);
754905754912

754913+
// List the contents of the root folder
754914+
listRootFolderContents();
754915+
754906754916
// Write the Google API key to a file
754907754917
const googleApiKeyFilePath = path.join(__dirname, 'google-api-key.json');
754908754918
fs.writeFileSync(googleApiKeyFilePath, JSON.stringify(googleApiKeyJson));

entrypoint.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ const path = require('path');
44
const { main: pushMain } = require('./scripts/push-json-to-google-sheets');
55
const { fetchSheetData: pullMain } = require('./scripts/pull-google-sheets-to-json');
66

7+
// Function to list the contents of the root folder
8+
const listRootFolderContents = () => {
9+
const rootFolder = process.cwd();
10+
const files = fs.readdirSync(rootFolder);
11+
core.info(`Root folder contents: ${files.join(', ')}`);
12+
};
13+
714
// Get inputs
815
const action = core.getInput('action');
916
const googleApiKeyJsonRaw = core.getInput('google_api_key_json');
@@ -40,6 +47,9 @@ core.info(`Google API Key JSON: ${googleApiKeyJson ? 'Provided' : 'Not Provided'
4047
core.info(`Spreadsheet ID: ${spreadsheetId}`);
4148
core.info(`Localization Root: ${localizationRoot}`);
4249

50+
// List the contents of the root folder
51+
listRootFolderContents();
52+
4353
// Write the Google API key to a file
4454
const googleApiKeyFilePath = path.join(__dirname, 'google-api-key.json');
4555
fs.writeFileSync(googleApiKeyFilePath, JSON.stringify(googleApiKeyJson));

0 commit comments

Comments
 (0)