Skip to content

Commit ad37297

Browse files
mszabo-wikiaClaude
andcommitted
fix: nest paths filter under push and pull_request triggers
The paths filter was a sibling of push/pull_request instead of nested under each, so it was ignored and the workflow ran on every push/PR rather than only when the grammar or workflow file changed. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
1 parent e443ed6 commit ad37297

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/linguist.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ on:
44
push:
55
branches:
66
- master
7+
paths: ["syntaxes/hack.json", ".github/workflows/linguist.yml"]
78
pull_request:
89
branches:
910
- master
10-
paths: ["syntaxes/hack.json", ".github/workflows/linguist.yml"]
11+
paths: ["syntaxes/hack.json", ".github/workflows/linguist.yml"]
1112

1213
permissions:
1314
contents: read

0 commit comments

Comments
 (0)