1
0
mirror of https://github.com/tormachris/cf-workers-status-page.git synced 2025-07-04 11:02:48 +02:00

fix(actions): let deployment pass on missing slack webhook

This commit is contained in:
Adam Janis
2020-11-14 16:41:51 +01:00
parent 0145fce7c4
commit b308d19b2c
2 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,7 @@ export async function processCronTrigger(event) {
console.log('Saving changed state..')
// first try to notify Slack in case fetch() or other limit is reached
if (typeof SECRET_SLACK_WEBHOOK_URL !== 'undefined') {
if (typeof SECRET_SLACK_WEBHOOK_URL !== 'undefined' && SECRET_SLACK_WEBHOOK_URL !== 'default-gh-action-secret') {
await notifySlack(monitor, newMetadata)
}