diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index befe95cb7feb..9e20b3ee57bf 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -74,7 +74,7 @@ jobs: name: Prepare GCS needs: build_source runs-on: ubuntu-latest - if: github.event_name != 'pull_request' + if: github.repository_owner == 'apache' && github.event_name != 'pull_request' steps: - name: Authenticate on GCP uses: GoogleCloudPlatform/github-actions/setup-gcloud@master @@ -88,6 +88,7 @@ jobs: name: Upload source to GCS bucket needs: prepare_gcs runs-on: ubuntu-latest + if: github.repository_owner == 'apache' steps: - name: Download compressed sources from artifacts uses: actions/download-artifact@v2 @@ -138,7 +139,7 @@ jobs: name: Upload wheels to GCS bucket needs: build_wheels runs-on: ubuntu-latest - if: github.event_name != 'pull_request' + if: github.repository_owner == 'apache' && github.event_name != 'pull_request' strategy: matrix: os : [ubuntu-latest, macos-latest] @@ -180,7 +181,7 @@ jobs: name: List files on Google Cloud Storage Bucket needs: upload_wheels_to_gcs runs-on: ubuntu-latest - if: github.event_name != 'pull_request' + if: github.repository_owner == 'apache' && github.event_name != 'pull_request' steps: - name: Authenticate on GCP uses: GoogleCloudPlatform/github-actions/setup-gcloud@master @@ -197,7 +198,7 @@ jobs: - build_wheels runs-on: ubuntu-latest timeout-minutes: 60 - if: github.event_name == 'schedule' + if: github.repository_owner == 'apache' && github.event_name == 'schedule' steps: - name: Checkout code on master branch uses: actions/checkout@master