Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bling-yshs committed Apr 19, 2024
1 parent 299d89e commit 90eed9b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 33 deletions.
30 changes: 14 additions & 16 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

30 changes: 14 additions & 16 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,22 +71,20 @@ async function run() {
}
}
const http = new httpClient.HttpClient()
const res = await http.get('https://www.google.com')
core.info(res.message.statusCode)
// for (const url of cdnList) {
// for (let i = 0; i < result.retry + 1; i++) {
// if (i === result.retry) {
// core.error(`⛔️refresh failed: ${url}`)
// break
// }
// const cdnResponse = await http.get(url)
// if (cdnResponse.message.statusCode === 200) {
// core.info(`✅️ ${url}`)
// break
// }
// core.error(`刷新失败${url}`)
// }
// }
for (const url of cdnList) {
for (let i = 0; i < result.retry + 1; i++) {
if (i === result.retry) {
core.error(`⛔️refresh failed: ${url}`)
break
}
const cdnResponse = await http.get('https://www.google.com')
if (cdnResponse.message.statusCode === 200) {
core.info(`✅️ ${url}`)
break
}
core.error(`刷新失败${url}`)
}
}
core.info('end action')
}

Expand Down

0 comments on commit 90eed9b

Please sign in to comment.