From 4f24b9a6f4f8b5d676db0cedfa4ef768a346ac7a Mon Sep 17 00:00:00 2001 From: harshbaz Date: Tue, 23 Jul 2024 14:21:35 +0530 Subject: [PATCH] Use npx --- .github/workflows/workers-deploy.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/workers-deploy.yml b/.github/workflows/workers-deploy.yml index d7c73420d..8532f8cf2 100644 --- a/.github/workflows/workers-deploy.yml +++ b/.github/workflows/workers-deploy.yml @@ -25,9 +25,7 @@ jobs: - uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_WORKERS_DEPLOY_API_TOKEN }} - secrets: | - CLOUDFLARE_API_TOKEN environment: "main" workingDirectory: "packages/workers/" - env: - CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_STREAM_IMAGES_API_TOKEN }} + postCommands: | + echo "${{ secrets.CLOUDFLARE_STREAM_IMAGES_API_TOKEN }}" | npx wrangler secret put CLOUDFLARE_API_TOKEN