From 5244a34a1d77b41dfa754faa521224f1ddf263cf Mon Sep 17 00:00:00 2001 From: Xia Zhenhua Date: Sat, 11 May 2024 16:44:25 +0800 Subject: [PATCH] feat: skip deploy-decs in folk repos. (#1703) Co-authored-by: aaren.xzh --- .github/workflows/deploy-docs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 160b3b4084..939e72bcb1 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.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