From 363d337a72320849d6ca65bbcdf78bd0568b461a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Thu, 24 Oct 2024 14:50:39 +0200 Subject: [PATCH] Cleanup GitHub workflows (#2554) --- .github/workflows/ci.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d944a183a..f7d4c52cc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -57,7 +57,7 @@ jobs: SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }} SENTRY_DSN: ${{ vars.SENTRY_DSN }} - id: deploy - name: Publish to Cloudflare Pages (Preview) + name: Deploy to Cloudflare uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} @@ -80,9 +80,9 @@ jobs: DEPLOYMENT_URL: ${{ steps.deploy.outputs.url }} run: | curl -X POST \ - -H "Authorization: token ${{ secrets.GH_PERSONAL_TOKEN }}" \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ -H "Accept: application/vnd.github.v3+json" \ - -d '{"state": "success", "target_url": "${{ steps.deploy.outputs.url }}", "description": "GitBook Preview URL", "context": "default"}' \ + -d '{"state": "success", "target_url": "${{ steps.deploy.outputs.url }}", "description": "Deployed Preview URL for commit", "context": "cloudflare/preview"}' \ https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} - name: Find GitHub Comment