From 349508cdf49486c217a578f4dd728211476e036d Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 29 Jun 2024 09:44:33 +0200 Subject: [PATCH] ci: don't run release/docs on forks with a main branch --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9040f5e0..795d3bd8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,7 @@ jobs: docs: runs-on: ubuntu-latest needs: tests - if: ${{ github.ref == 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'LazyVim' }} steps: - uses: actions/checkout@v4 - name: panvimdoc @@ -58,7 +58,7 @@ jobs: commit_author: "github-actions[bot] " release: name: release - if: ${{ github.ref == 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'LazyVim' }} needs: - docs - tests