mirror of
				https://github.com/tormachris/cf-workers-status-page.git
				synced 2025-11-04 12:56:24 +01:00 
			
		
		
		
	fail open on kv create
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/deploy.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/deploy.yml
									
									
									
									
										vendored
									
									
								
							@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user