From 4394c872f5194b65a1eff229b625a39484079920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Jani=C5=A1?= Date: Fri, 6 May 2022 13:30:06 +0100 Subject: [PATCH] fail open on kv create --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cb13ef6..d536303 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,7 +29,7 @@ jobs: command: publish --env production wranglerVersion: beta preCommands: | - wrangler kv:namespace create KV_STATUS_PAGE + wrangler kv:namespace create KV_STATUS_PAGE || echo "KV namespace already exists" apt-get update && apt-get install -y jq export KV_NAMESPACE_ID=$(wrangler kv:namespace list | jq -c 'map(select(.title | contains("KV_STATUS_PAGE")))' | jq -r ".[0].id") echo "[env.production]" >> wrangler.toml