Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Commit cf38e22

Browse files
committed
fixup! rework the script to a single curl call
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
1 parent 408d18d commit cf38e22

File tree

2 files changed

+5
-48
lines changed

2 files changed

+5
-48
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ jobs:
2828
cache: npm
2929

3030
- name: Trigger a new Cloudflare Pages deployment
31-
run: node scripts/trigger-deployment.js
32-
env:
33-
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
34-
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
35-
PROJECT_NAME: spark-dashboard
31+
run: |
32+
curl --fail-with-body -X POST \
33+
-H "Authorization: Bearer {{ secrets.CLOUDFLARE_API_TOKEN }}" \
34+
-H "Content-Type: application/json" \
35+
https://api.cloudflare.com/client/v4/accounts/{{ secrets.CLOUDFLARE_ACCOUNT_ID }}/pages/projects/spark-dashboard/deployments
3636
3737
- if: failure()
3838
uses: slackapi/slack-github-action@v2.0.0

scripts/trigger-deployment.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)