Skip to content

Commit

Permalink
[GitHub Actions] Run website build only when github repository is apa…
Browse files Browse the repository at this point in the history
…che/pulsar (apache#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).
  • Loading branch information
lhotari authored Mar 26, 2021
1 parent 9559114 commit ccecd03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-pulsar-website-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ccecd03

Please sign in to comment.