소스 검색

feat: skip deploy-decs in folk repos. (#1703)

Co-authored-by: aaren.xzh <aaren.xzh@antfin.com>
Xia Zhenhua 1 년 전
부모
커밋
5244a34a1d
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      .github/workflows/deploy-docs.yml

+ 2 - 1
.github/workflows/deploy-docs.yml

@@ -12,6 +12,7 @@ jobs:
   build:
     name: Build Docusaurus
     runs-on: ubuntu-latest
+    if: github.repository == 'OpenDevin/OpenDevin'
     steps:
       - uses: actions/checkout@v4
         with:
@@ -42,7 +43,7 @@ jobs:
   deploy:
     name: Deploy to GitHub Pages
     needs: build
-    if: github.ref == 'refs/heads/main'
+    if: github.ref == 'refs/heads/main' && github.repository == 'OpenDevin/OpenDevin'
     # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
     permissions:
       pages: write # to deploy to Pages