This is an automated email from the ASF dual-hosted git repository.

penghui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new ccecd03  [GitHub Actions] Run website build only when github 
repository is apache/pulsar (#10048)
ccecd03 is described below

commit ccecd031ce2e5d459717c433107a7abc58046cae
Author: Lari Hotari <lhot...@users.noreply.github.com>
AuthorDate: Fri Mar 26 15:47:54 2021 +0200

    [GitHub Actions] Run website build only when github repository is 
apache/pulsar (#10048)
    
    - GitHub Actions can be run in forked repositories. Without this change,
      the scheduled website build will be running unnecessarily in forked 
repositories.
      The website build will fail and cause failure notifications which get
      delivered by email to the repository owner (by default).
---
 .github/workflows/ci-pulsar-website-build.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/ci-pulsar-website-build.yaml 
b/.github/workflows/ci-pulsar-website-build.yaml
index 54ec62b..ded1063 100644
--- a/.github/workflows/ci-pulsar-website-build.yaml
+++ b/.github/workflows/ci-pulsar-website-build.yaml
@@ -27,6 +27,7 @@ env:
 
 jobs:
   build-website:
+    if: ${{ github.repository == 'apache/pulsar' }}
     name: Build and publish pulsar website
     runs-on: ubuntu-latest
     timeout-minutes: 120

Reply via email to