mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-18 16:28:37 +02:00
ci: don't run release/docs on forks with a main branch
This commit is contained in:
parent
9dd2e0d39a
commit
349508cdf4
1 changed files with 2 additions and 2 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -39,7 +39,7 @@ jobs:
|
||||||
docs:
|
docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: tests
|
needs: tests
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'LazyVim' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: panvimdoc
|
- name: panvimdoc
|
||||||
|
@ -58,7 +58,7 @@ jobs:
|
||||||
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
|
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
|
||||||
release:
|
release:
|
||||||
name: release
|
name: release
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'LazyVim' }}
|
||||||
needs:
|
needs:
|
||||||
- docs
|
- docs
|
||||||
- tests
|
- tests
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue