From eb012dc60aeb947ce4ef3b1dc13d87e79979e7b8 Mon Sep 17 00:00:00 2001 From: Shivaditya Shivganesh Date: Fri, 3 Jan 2025 17:50:34 -0500 Subject: [PATCH] fix: update the deploy.yml --- .github/workflows/deploy.yml | 4 ++-- functions/issue-scraper.ts | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1fbde3c..a9dc55f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,7 +16,8 @@ jobs: uses: actions/checkout@v4 - name: Write secrets to wrangler.toml run: | - sed -i 's/VOYAGE_API_KEY = ""/VOYAGE_API_KEY = "TEST"/g' wrangler.toml + sed -i 's/SUPABASE_URL = ""/SUPABASE_URL = "${{secrets.SUPABASE_URL}}"/g' wrangler.toml + sed -i 's/SUPABASE_ANON_KEY = ""/SUPABASE_ANON_KEY = "${{secrets.SUPABASE_ANON_KEY}}"/g' wrangler.toml env: VOYAGE_API_KEY: ${{ secrets.VOYAGEAI_API_KEY }} SUPABASE_URL: ${{ secrets.SUPABASE_URL }} @@ -27,7 +28,6 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Deploy to Cloudflare - if: ${{ github.event.workflow_run.conclusion == 'success' }} uses: ubiquity/cloudflare-deploy-action@main with: repository: ${{ github.repository }} diff --git a/functions/issue-scraper.ts b/functions/issue-scraper.ts index df5179f..a1a5865 100644 --- a/functions/issue-scraper.ts +++ b/functions/issue-scraper.ts @@ -8,8 +8,6 @@ export const corsHeaders = { export async function onRequest(ctx: Context): Promise { const { request, env } = ctx; - console.log("Request received:", request.method, request.url); - console.log("Environment", env); const url = new URL(request.url); try {