Move test repo URL to environment
This commit is contained in:
@@ -19,6 +19,10 @@ const { safeClose, safeGoto } = require(path.join(__dirname, '..', 'utils', 'pag
|
||||
async function updateProject(page) {
|
||||
logger.info('👉 执行项目更新');
|
||||
|
||||
if (!config.urls.testRepo) {
|
||||
throw new Error('未配置 GITCODE_TEST_REPO_URL,无法执行更新项目任务');
|
||||
}
|
||||
|
||||
const context = page.context();
|
||||
const newPage = await context.newPage();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user