From ff667497096c11b0745c2b865ec62be2351cfcf5 Mon Sep 17 00:00:00 2001 From: Chris Buckley Date: Tue, 3 Sep 2024 12:00:58 +0100 Subject: [PATCH] Use wrangler version from npm --- .github/workflows/cloudflare-worker.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/cloudflare-worker.yml b/.github/workflows/cloudflare-worker.yml index 5852453..1369518 100644 --- a/.github/workflows/cloudflare-worker.yml +++ b/.github/workflows/cloudflare-worker.yml @@ -9,11 +9,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Get Wrangler version + id: wrangler_version + run: | + echo "npm=$(jq -r .dependencies.wrangler package.json | sed 's/\^//')" >> "$GITHUB_OUTPUT" - name: Deploy Cloudflare Worker uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CF_API_TOKEN }} accountId: ${{ secrets.CF_ACCOUNT_ID }} + wranglerVersion: ${{ steps.wrangler_version.outputs.npm }} secrets: | BASIC_AUTH SLACK_TOKEN