ci: don't run release/docs on forks with a main branch

This commit is contained in:
Folke Lemaitre 2024-06-29 09:44:33 +02:00
parent 9dd2e0d39a
commit 349508cdf4
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -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] <github-actions[bot]@users.noreply.github.com>"
release:
name: release
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'LazyVim' }}
needs:
- docs
- tests