File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -754904,9 +754904,10 @@ core.info(`Spreadsheet ID: ${spreadsheetId}`);
754904
754904
core.info(`Localization Root: ${localizationRoot}`);
754905
754905
754906
754906
// Write the Google API key to a file
754907
- fs.writeFileSync('google-api-key.json', JSON.stringify(googleApiKeyJson));
754907
+ const googleApiKeyFilePath = path.join(__dirname, 'google-api-key.json');
754908
+ fs.writeFileSync(googleApiKeyFilePath, JSON.stringify(googleApiKeyJson));
754908
754909
754909
- process.env.GOOGLE_APPLICATION_CREDENTIALS = 'google-api-key.json' ;
754910
+ process.env.GOOGLE_APPLICATION_CREDENTIALS = googleApiKeyFilePath ;
754910
754911
process.env.SPREADSHEET_ID = spreadsheetId;
754911
754912
process.env.LOCALIZATION_ROOT = localizationRoot;
754912
754913
@@ -754925,7 +754926,7 @@ try {
754925
754926
}
754926
754927
754927
754928
// Clean up the Google API key file
754928
- fs.unlinkSync('google-api-key.json' );
754929
+ fs.unlinkSync(googleApiKeyFilePath );
754929
754930
754930
754931
module.exports = __webpack_exports__;
754931
754932
/******/ })()
Original file line number Diff line number Diff line change @@ -41,9 +41,10 @@ core.info(`Spreadsheet ID: ${spreadsheetId}`);
41
41
core . info ( `Localization Root: ${ localizationRoot } ` ) ;
42
42
43
43
// Write the Google API key to a file
44
- fs . writeFileSync ( 'google-api-key.json' , JSON . stringify ( googleApiKeyJson ) ) ;
44
+ const googleApiKeyFilePath = path . join ( __dirname , 'google-api-key.json' ) ;
45
+ fs . writeFileSync ( googleApiKeyFilePath , JSON . stringify ( googleApiKeyJson ) ) ;
45
46
46
- process . env . GOOGLE_APPLICATION_CREDENTIALS = 'google-api-key.json' ;
47
+ process . env . GOOGLE_APPLICATION_CREDENTIALS = googleApiKeyFilePath ;
47
48
process . env . SPREADSHEET_ID = spreadsheetId ;
48
49
process . env . LOCALIZATION_ROOT = localizationRoot ;
49
50
62
63
}
63
64
64
65
// Clean up the Google API key file
65
- fs . unlinkSync ( 'google-api-key.json' ) ;
66
+ fs . unlinkSync ( googleApiKeyFilePath ) ;
You can’t perform that action at this time.
0 commit comments