From 8954471443c3a1ea0b8893b23179b268799396d9 Mon Sep 17 00:00:00 2001 From: zhyncs Date: Sat, 27 Jul 2024 14:50:48 +1000 Subject: [PATCH] fix: not run workflows on fork repo --- .github/workflows/close-inactive-issues.yml | 1 + .github/workflows/docker.yml | 1 + .github/workflows/pypi.yml | 1 + .github/workflows/release.yml | 1 + 4 files changed, 4 insertions(+) diff --git a/.github/workflows/close-inactive-issues.yml b/.github/workflows/close-inactive-issues.yml index 3c5cbb4d62e..e81dd424791 100644 --- a/.github/workflows/close-inactive-issues.yml +++ b/.github/workflows/close-inactive-issues.yml @@ -11,6 +11,7 @@ permissions: jobs: close-inactive-issues: + if: github.repository == 'sgl-project/sglang' runs-on: ubuntu-latest steps: - name: Check and close inactive issues diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index ad021e6de34..8db50c6e40e 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -9,6 +9,7 @@ on: jobs: publish: + if: github.repository == 'sgl-project/sglang' runs-on: ubuntu-latest environment: 'prod' strategy: diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 281134a29c8..4c278a8b8f3 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -9,6 +9,7 @@ on: jobs: publish: + if: github.repository == 'sgl-project/sglang' runs-on: ubuntu-latest environment: 'prod' steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a146f1aaef5..a1bc0d722d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,7 @@ on: workflow_dispatch: jobs: publish: + if: github.repository == 'sgl-project/sglang' runs-on: ubuntu-latest environment: 'prod' steps: