From 73846abc8733ebf05d673a60d2fee25c8c197b90 Mon Sep 17 00:00:00 2001 From: Zhen Wang <643348094@qq.com> Date: Tue, 10 Dec 2024 16:16:14 +0800 Subject: [PATCH] Disable scheduled GHA jobs for forked repos (#8189) --- .github/workflows/docker_image.yml | 2 ++ .github/workflows/stale.yml | 1 + .github/workflows/velox_weekly.yml | 2 ++ 3 files changed, 5 insertions(+) diff --git a/.github/workflows/docker_image.yml b/.github/workflows/docker_image.yml index 0a6742099b36..f6f0cd51b1f5 100644 --- a/.github/workflows/docker_image.yml +++ b/.github/workflows/docker_image.yml @@ -28,6 +28,7 @@ on: jobs: build-vcpkg-centos-7: + if: ${{ startsWith(github.repository, 'apache/') }} runs-on: ubuntu-latest steps: @@ -52,6 +53,7 @@ jobs: tags: apache/gluten:vcpkg-centos-7 build-centos-8: + if: ${{ startsWith(github.repository, 'apache/') }} runs-on: ubuntu-latest steps: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index b766fe46cbb2..20e0b2868c27 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -20,6 +20,7 @@ on: jobs: stale: + if: ${{ startsWith(github.repository, 'apache/') }} runs-on: ubuntu-latest steps: - uses: actions/stale@v8 diff --git a/.github/workflows/velox_weekly.yml b/.github/workflows/velox_weekly.yml index fa8273d51a2f..1a5589314ce1 100644 --- a/.github/workflows/velox_weekly.yml +++ b/.github/workflows/velox_weekly.yml @@ -35,6 +35,7 @@ jobs: fail-fast: false matrix: os: [ "centos:7", "centos:8", "quay.io/centos/centos:stream9" ] + if: ${{ startsWith(github.repository, 'apache/') }} runs-on: ubuntu-20.04 container: ${{ matrix.os }} steps: @@ -79,6 +80,7 @@ jobs: fail-fast: false matrix: os: [ "ubuntu:20.04", "ubuntu:22.04" ] + if: ${{ startsWith(github.repository, 'apache/') }} runs-on: ubuntu-20.04 container: ${{ matrix.os }} steps: