From 756d62b689585835af62bb8f45f8524c26b93a64 Mon Sep 17 00:00:00 2001 From: Eduard Marbach Date: Thu, 5 Dec 2024 10:36:34 +0100 Subject: [PATCH] ci: run doc pr comment only on PRs --- .github/workflows/doc-preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/doc-preview.yml b/.github/workflows/doc-preview.yml index 633e00f..cfc57e7 100644 --- a/.github/workflows/doc-preview.yml +++ b/.github/workflows/doc-preview.yml @@ -53,6 +53,7 @@ jobs: - name: Comment PR uses: thollander/actions-comment-pull-request@v3 + if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' }} with: message: | Doc preview deployed to: ${{ steps.cloudflare-deploy.outputs.deployment-url }}