From 1545c09aced57a7d39217a9aa19c4892aeb6b201 Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Wed, 17 Jan 2024 17:24:12 -0800 Subject: [PATCH] [ci] Disable run scheduled github actions in fork (#2943) --- .github/workflows/native_jni_s3_pytorch.yml | 1 + .github/workflows/native_jni_s3_pytorch_android.yml | 1 + .github/workflows/nightly_android.yml | 1 + .github/workflows/no_response.yml | 1 + .github/workflows/publish_android_packages.yml | 1 + 5 files changed, 5 insertions(+) diff --git a/.github/workflows/native_jni_s3_pytorch.yml b/.github/workflows/native_jni_s3_pytorch.yml index ed193efe446..d0f284093ba 100644 --- a/.github/workflows/native_jni_s3_pytorch.yml +++ b/.github/workflows/native_jni_s3_pytorch.yml @@ -260,6 +260,7 @@ jobs: aarch64_instance_id: ${{ steps.create_aarch64.outputs.action_graviton_instance_id }} build-pytorch-jni-aarch64: + if: github.repository == 'deepjavalibrary/djl' runs-on: [ self-hosted, aarch64 ] container: amazonlinux:2 timeout-minutes: 30 diff --git a/.github/workflows/native_jni_s3_pytorch_android.yml b/.github/workflows/native_jni_s3_pytorch_android.yml index ef606fb649a..8f09232f785 100644 --- a/.github/workflows/native_jni_s3_pytorch_android.yml +++ b/.github/workflows/native_jni_s3_pytorch_android.yml @@ -7,6 +7,7 @@ on: jobs: build-pytorch-jni-android: + if: github.repository == 'deepjavalibrary/djl' runs-on: ubuntu-latest env: NDK_VERSION: "21.1.6352462" diff --git a/.github/workflows/nightly_android.yml b/.github/workflows/nightly_android.yml index 4735138bee4..d7aa268f195 100644 --- a/.github/workflows/nightly_android.yml +++ b/.github/workflows/nightly_android.yml @@ -9,6 +9,7 @@ on: jobs: build: + if: github.repository == 'deepjavalibrary/djl' runs-on: macos-latest strategy: matrix: diff --git a/.github/workflows/no_response.yml b/.github/workflows/no_response.yml index 893ac1eac93..75c1c07ad54 100644 --- a/.github/workflows/no_response.yml +++ b/.github/workflows/no_response.yml @@ -11,6 +11,7 @@ on: jobs: noResponse: + if: github.repository == 'deepjavalibrary/djl' runs-on: ubuntu-latest steps: - uses: lee-dohm/no-response@v0.5.0 diff --git a/.github/workflows/publish_android_packages.yml b/.github/workflows/publish_android_packages.yml index c70b2f69414..4d7d3bfd3ed 100644 --- a/.github/workflows/publish_android_packages.yml +++ b/.github/workflows/publish_android_packages.yml @@ -12,6 +12,7 @@ on: jobs: release-android: + if: github.repository == 'deepjavalibrary/djl' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3