1
0
mirror of https://github.com/tormachris/cf-workers-status-page.git synced 2025-07-05 03:22:47 +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

@ -27,6 +27,7 @@ jobs:
kv_namespace_id=$(wrangler kv:namespace list | jq -c 'map(select(.title | contains("KV_STATUS_PAGE")))' | jq ".[0].id")
echo "[env.production]" >> wrangler.toml
echo "kv_namespaces = [{binding=\"KV_STATUS_PAGE\", id=${kv_namespace_id}}]" >> wrangler.toml
[ -z "$SECRET_SLACK_WEBHOOK_URL" ] && echo "Secret SECRET_SLACK_WEBHOOK_URL not set, creating dummy one..." && SECRET_SLACK_WEBHOOK_URL="default-gh-action-secret" || true
secrets: |
SECRET_SLACK_WEBHOOK_URL
environment: production