Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
0xngmi committed Dec 23, 2024
1 parent bbd0e9c commit c7040b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/build-msg.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ const COMMIT_HASH = process.argv[8]

let buildSummary = ''
if (BUILD_STATUS === '0') {
if (process.env.IS_SHARD === "true") {
return // Skip logging, this is just a shard
}
buildSummary += `🎉 Build succeeded in ${BUILD_TIME_STR}`
} else {
buildSummary += `🚨 Build failed in ${BUILD_TIME_STR}`
Expand All @@ -90,6 +87,9 @@ async function checkWebhookResponse(bodyResponse) {
}

const sendMessages = async () => {
if (BUILD_STATUS === '0' && process.env.IS_SHARD === "true") {
return // Skip logging, this is just a shard
}
const message = `\`\`\`\n===== COMMIT SUMMARY =====\n${commitSummary}\n\n===== BUILD SUMMARY =====\n${buildSummary}\n\`\`\``
const body = { content: message }
await checkWebhookResponse(await fetch(BUILD_STATUS_WEBHOOK, {
Expand Down

0 comments on commit c7040b3

Please sign in to comment.