Skip to content

Commit

Permalink
[ci] Only run workflow tasks on djl repo (#1923)
Browse files Browse the repository at this point in the history
Change-Id: Ib0ba95795f7a7597be0733f2704e580311d1fc79
  • Loading branch information
frankfliu authored Aug 17, 2022
1 parent a1275db commit 7f75920
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/native_jni_s3_pytorch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7f75920

Please sign in to comment.