Skip to content

Commit 73846ab

Browse files
authored
Disable scheduled GHA jobs for forked repos (#8189)
1 parent f37f459 commit 73846ab

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.github/workflows/docker_image.yml

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ on:
2828

2929
jobs:
3030
build-vcpkg-centos-7:
31+
if: ${{ startsWith(github.repository, 'apache/') }}
3132
runs-on: ubuntu-latest
3233

3334
steps:
@@ -52,6 +53,7 @@ jobs:
5253
tags: apache/gluten:vcpkg-centos-7
5354

5455
build-centos-8:
56+
if: ${{ startsWith(github.repository, 'apache/') }}
5557
runs-on: ubuntu-latest
5658

5759
steps:

.github/workflows/stale.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020

2121
jobs:
2222
stale:
23+
if: ${{ startsWith(github.repository, 'apache/') }}
2324
runs-on: ubuntu-latest
2425
steps:
2526
- uses: actions/stale@v8

.github/workflows/velox_weekly.yml

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
os: [ "centos:7", "centos:8", "quay.io/centos/centos:stream9" ]
38+
if: ${{ startsWith(github.repository, 'apache/') }}
3839
runs-on: ubuntu-20.04
3940
container: ${{ matrix.os }}
4041
steps:
@@ -79,6 +80,7 @@ jobs:
7980
fail-fast: false
8081
matrix:
8182
os: [ "ubuntu:20.04", "ubuntu:22.04" ]
83+
if: ${{ startsWith(github.repository, 'apache/') }}
8284
runs-on: ubuntu-20.04
8385
container: ${{ matrix.os }}
8486
steps:

0 commit comments

Comments
 (0)