Skip to content

Commit d278233

Browse files
authored
ci: disable gen-annotations in forks #4366
Problem: gen-annotations runs on PRs. Solution: - Check the org + repo name. - Trigger on "master" branch only. related: d7c25c5 #4357
1 parent 5492a24 commit d278233

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/gen-annotations.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: gen-annotations
22

33
on:
44
push:
5+
branches:
6+
- master
57
paths:
68
- lsp/**
79
- scripts/gen_json_schemas.lua
@@ -11,7 +13,7 @@ on:
1113

1214
jobs:
1315
gen-annotations:
14-
if: github.actor != 'github-actions[bot]'
16+
if: github.actor != 'github-actions[bot]' && github.repository == 'neovim/nvim-lspconfig'
1517
runs-on: ubuntu-latest
1618
permissions:
1719
contents: write

0 commit comments

Comments
 (0)