Skip to content

Commit ca4bc33

Browse files
committed
Only run workflows when things change that could affect them
1 parent 1e9b8d5 commit ca4bc33

5 files changed

Lines changed: 22 additions & 3 deletions

File tree

.github/workflows/grammar-validator.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ name: ANTLR Grammar validator
44
on:
55
pull_request:
66
types: [opened, synchronize, reopened]
7+
paths:
8+
- "standard/**"
9+
- "tools/GrammarTesting/**"
10+
- "tools/validate-grammar.sh"
11+
- ".github/workflows/dependencies/GrammarTestingEnv.tgz"
712
workflow_dispatch:
813
inputs:
914
reason:

.github/workflows/renumber-sections.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ name: Renumber standard TOC
44
on:
55
pull_request:
66
types: [opened, synchronize, reopened]
7+
paths:
8+
- "standard/**"
9+
- "tools/StandardAnchorTags/**"
10+
- "tools/run-section-renumber.sh"
711
workflow_dispatch:
812
inputs:
913
reason:

.github/workflows/smart-quotes.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Convert to Smart Quotes
33
# Triggers the workflow on push to spec version branches.
44
# test-branch can be used to test this workflow.
55
on:
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
paths:
9+
- "standard/**"
10+
- "tools/run-smarten.sh"
11+
- ".github/workflows/dependencies/EcmaTC49.Smarten.tar"
612
workflow_dispatch:
713
inputs:
814
reason:

.github/workflows/tools-tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ on:
55
pull_request:
66
types: [opened, synchronize, reopened]
77
paths:
8-
- '**.cs'
9-
- '**.csproj'
10-
- '**.sln'
8+
- 'tools/**.cs'
9+
- 'tools/**.csproj'
10+
- 'tools/**.sln'
1111
workflow_dispatch:
1212
inputs:
1313
reason:

.github/workflows/word-converter.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ name: Word Converter
44
on:
55
pull_request:
66
types: [opened, synchronize, reopened]
7+
paths:
8+
- "standard/**"
9+
- "tools/MarkdownConverter/**"
10+
- "tools/run-converter.sh"
711
workflow_dispatch:
812
inputs:
913
reason:

0 commit comments

Comments
 (0)