pull/68/head
xiaojunnuo 2024-03-22 02:18:47 +08:00
parent 754e76d9b9
commit a3c375ede5
1 changed files with 3 additions and 2 deletions

View File

@ -56,7 +56,8 @@ async function sync() {
// curl -X PUT https://registry-direct.npmmirror.com/@certd/plugin-cert/sync?sync_upstream=true // curl -X PUT https://registry-direct.npmmirror.com/@certd/plugin-cert/sync?sync_upstream=true
const certdImageBuild = "http://flow-openapi.aliyun.com/pipeline/webhook/4zgFk3i4RZEMGuQzlOcI" const certdImageBuild = "http://flow-openapi.aliyun.com/pipeline/webhook/4zgFk3i4RZEMGuQzlOcI"
const webhooks = [certdImageBuild] const certdImageRun = "http://flow-openapi.aliyun.com/pipeline/webhook/lzCzlGrLCOHQaTMMt0mG"
const webhooks = [certdImageBuild,certdImageRun]
async function sleep(time) { async function sleep(time) {
return new Promise(resolve => { return new Promise(resolve => {
@ -78,7 +79,7 @@ async function triggerBuild() {
} }
}) })
console.log(`webhook success:${webhook}`) console.log(`webhook success:${webhook}`)
await sleep(1000) await sleep(10*60*1000)
} }
} }