mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 12:47:14 +00:00
27 lines
799 B
JavaScript
27 lines
799 B
JavaScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const schemes = ['OSS', 'INSIDERS'];
|
|
|
|
function main() {
|
|
let content = {};
|
|
|
|
for (const scheme of schemes) {
|
|
const id = process.env[`${scheme}_GITHUB_ID`];
|
|
const secret = process.env[`${scheme}_GITHUB_SECRET`];
|
|
|
|
if (id && secret) {
|
|
content[scheme] = { id, secret };
|
|
}
|
|
}
|
|
|
|
fs.writeFileSync(path.join(__dirname, '../src/common/config.json'), JSON.stringify(content));
|
|
}
|
|
|
|
main();
|