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);
754867
754867
const { main: pushMain } = __nccwpck_require__(12533);
754868
754868
const { fetchSheetData: pullMain } = __nccwpck_require__(19868);
754869
754869
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
+
754870
754877
// Get inputs
754871
754878
const action = core.getInput('action');
754872
754879
const googleApiKeyJsonRaw = core.getInput('google_api_key_json');
@@ -754903,6 +754910,9 @@ core.info(`Google API Key JSON: ${googleApiKeyJson ? 'Provided' : 'Not Provided'
754903
754910
core.info(`Spreadsheet ID: ${spreadsheetId}`);
754904
754911
core.info(`Localization Root: ${localizationRoot}`);
754905
754912
754913
+ // List the contents of the root folder
754914
+ listRootFolderContents();
754915
+
754906
754916
// Write the Google API key to a file
754907
754917
const googleApiKeyFilePath = path.join(__dirname, 'google-api-key.json');
754908
754918
fs.writeFileSync(googleApiKeyFilePath, JSON.stringify(googleApiKeyJson));
Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ const path = require('path');
4
4
const { main : pushMain } = require ( './scripts/push-json-to-google-sheets' ) ;
5
5
const { fetchSheetData : pullMain } = require ( './scripts/pull-google-sheets-to-json' ) ;
6
6
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
+
7
14
// Get inputs
8
15
const action = core . getInput ( 'action' ) ;
9
16
const googleApiKeyJsonRaw = core . getInput ( 'google_api_key_json' ) ;
@@ -40,6 +47,9 @@ core.info(`Google API Key JSON: ${googleApiKeyJson ? 'Provided' : 'Not Provided'
40
47
core . info ( `Spreadsheet ID: ${ spreadsheetId } ` ) ;
41
48
core . info ( `Localization Root: ${ localizationRoot } ` ) ;
42
49
50
+ // List the contents of the root folder
51
+ listRootFolderContents ( ) ;
52
+
43
53
// Write the Google API key to a file
44
54
const googleApiKeyFilePath = path . join ( __dirname , 'google-api-key.json' ) ;
45
55
fs . writeFileSync ( googleApiKeyFilePath , JSON . stringify ( googleApiKeyJson ) ) ;
You can’t perform that action at this time.
0 commit comments