File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -754867,6 +754867,13 @@ const path = __nccwpck_require__(16928);
754867754867const { main: pushMain } = __nccwpck_require__(12533);
754868754868const { 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
754871754878const action = core.getInput('action');
754872754879const googleApiKeyJsonRaw = core.getInput('google_api_key_json');
@@ -754903,6 +754910,9 @@ core.info(`Google API Key JSON: ${googleApiKeyJson ? 'Provided' : 'Not Provided'
754903754910core.info(`Spreadsheet ID: ${spreadsheetId}`);
754904754911core.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
754907754917const googleApiKeyFilePath = path.join(__dirname, 'google-api-key.json');
754908754918fs.writeFileSync(googleApiKeyFilePath, JSON.stringify(googleApiKeyJson));
Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ const path = require('path');
44const { main : pushMain } = require ( './scripts/push-json-to-google-sheets' ) ;
55const { 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
815const action = core . getInput ( 'action' ) ;
916const googleApiKeyJsonRaw = core . getInput ( 'google_api_key_json' ) ;
@@ -40,6 +47,9 @@ core.info(`Google API Key JSON: ${googleApiKeyJson ? 'Provided' : 'Not Provided'
4047core . info ( `Spreadsheet ID: ${ spreadsheetId } ` ) ;
4148core . 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
4454const googleApiKeyFilePath = path . join ( __dirname , 'google-api-key.json' ) ;
4555fs . writeFileSync ( googleApiKeyFilePath , JSON . stringify ( googleApiKeyJson ) ) ;
You can’t perform that action at this time.
0 commit comments