From 0e956cc43d609cb68611f3362549d24674cda740 Mon Sep 17 00:00:00 2001 From: Won-Kyu Park Date: Tue, 5 Dec 2023 20:55:46 +0900 Subject: [PATCH] fix for forks --- .github/workflows/compare-artifacts.yml | 2 +- .github/workflows/documentation.yml | 1 + .github/workflows/torch-inductor-tests.yml | 1 + .github/workflows/wheels.yml | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compare-artifacts.yml b/.github/workflows/compare-artifacts.yml index bdad9bdb4658..2a009ab15987 100644 --- a/.github/workflows/compare-artifacts.yml +++ b/.github/workflows/compare-artifacts.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 - if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository == 'openai/triton'}} steps: - name: Download PR number artifact diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index f2e1bcf3a58c..348e2f64a255 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -6,6 +6,7 @@ on: jobs: Build-Documentation: + if: github.repository == 'openai/triton' runs-on: [self-hosted, A100] timeout-minutes: 20 diff --git a/.github/workflows/torch-inductor-tests.yml b/.github/workflows/torch-inductor-tests.yml index dd7723e83456..df95a8f59117 100644 --- a/.github/workflows/torch-inductor-tests.yml +++ b/.github/workflows/torch-inductor-tests.yml @@ -7,6 +7,7 @@ on: jobs: Runner-Preparation: + if: github.repository == 'openai/triton' runs-on: ubuntu-latest outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index fc1d6d68583a..473ec2d0298f 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -7,6 +7,7 @@ on: jobs: Build-Wheels: + if: github.repository == 'openai/triton' timeout-minutes: 60 runs-on: [self-hosted, CPU]