From 8320bcf903ec683c0e6a1df1f6b2a0c4ecee4759 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 18 Nov 2024 11:33:04 +0000 Subject: [PATCH] skip cloudflare deploy on cron trigger --- .github/workflows/deploy.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1129f387..7c103af1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -38,13 +38,11 @@ jobs: user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' - - name: Build for cloudflare + - name: Deploy on cloudflare + if: "!${{ github.event_name == 'schedule' }}" run: | sed -i 's|^const site_url\ =.*|const site_url\ =\ "https://pranab.pages.dev";|I' docusaurus.config.js npm run build - - - name: Deploy on cloudflare - run: | COMMIT_HASH=$( git rev-parse --short HEAD ) cd .. git config --global user.email "github-actions[bot]@users.noreply.github.com"