diff --git a/.github/workflows/native_jni_s3_pytorch.yml b/.github/workflows/native_jni_s3_pytorch.yml index e03a1efb90e..291e5688b8e 100644 --- a/.github/workflows/native_jni_s3_pytorch.yml +++ b/.github/workflows/native_jni_s3_pytorch.yml @@ -253,7 +253,7 @@ jobs: aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/pytorch/${PYTORCH_VERSION}/jnilib*" stop-runners: - if: always() + if: ${{ github.repository == 'deepjavalibrary/djl' && always() }} runs-on: [ self-hosted, scheduler ] needs: [ create-aarch64-runner, build-pytorch-jni-aarch64 ] steps: diff --git a/.github/workflows/nightly_publish.yml b/.github/workflows/nightly_publish.yml index ce1d1dab728..ea03cdbc10e 100644 --- a/.github/workflows/nightly_publish.yml +++ b/.github/workflows/nightly_publish.yml @@ -286,7 +286,7 @@ jobs: gpu_2_instance_id: ${{ steps.create_gpu_2.outputs.action_gpu_instance_id }} stop-runners: - if: always() + if: ${{ github.repository == 'deepjavalibrary/djl' && always() }} runs-on: [ self-hosted, scheduler ] needs: [ create-runners, test-aarch64, test-cuda-102, test-cuda-113 ] steps: