Skip to content

Commit

Permalink
feat(cd): disable cf pages deploy hook
Browse files Browse the repository at this point in the history
  • Loading branch information
HEIGE-PCloud committed Dec 20, 2024
1 parent 03f96dd commit c930977
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
env:
CLOUDFLARE_PAGES_DEPLOY_HOOK: ${{ secrets.CLOUDFLARE_PAGES_DEPLOY_HOOK }}
# env:
# CLOUDFLARE_PAGES_DEPLOY_HOOK: ${{ secrets.CLOUDFLARE_PAGES_DEPLOY_HOOK }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -58,6 +58,6 @@ jobs:
with:
commit_message: Sync content with Notion

- name: Trigger Cloudflare Pages build
if: startsWith(env.CLOUDFLARE_PAGES_DEPLOY_HOOK, 'https://api.cloudflare.com/client/v4/pages/webhooks/deploy_hooks/') && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
run: curl -X POST ${{ secrets.CLOUDFLARE_PAGES_DEPLOY_HOOK }}
# - name: Trigger Cloudflare Pages build
# if: startsWith(env.CLOUDFLARE_PAGES_DEPLOY_HOOK, 'https://api.cloudflare.com/client/v4/pages/webhooks/deploy_hooks/') && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
# run: curl -X POST ${{ secrets.CLOUDFLARE_PAGES_DEPLOY_HOOK }}

0 comments on commit c930977

Please sign in to comment.