fix: not run workflows on fork repo (#762)

This commit is contained in:
Yineng Zhang
2024-07-27 14:51:33 +10:00
committed by GitHub
parent c3c74bf874
commit a72342f180
4 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -9,6 +9,7 @@ on:
jobs:
publish:
if: github.repository == 'sgl-project/sglang'
runs-on: ubuntu-latest
environment: 'prod'
strategy:

View File

@@ -9,6 +9,7 @@ on:
jobs:
publish:
if: github.repository == 'sgl-project/sglang'
runs-on: ubuntu-latest
environment: 'prod'
steps:

View File

@@ -8,6 +8,7 @@ on:
workflow_dispatch:
jobs:
publish:
if: github.repository == 'sgl-project/sglang'
runs-on: ubuntu-latest
environment: 'prod'
steps: