Skip to content

Commit 29dd2fd

Browse files
Only run build-game.yml when certain paths change.
Signed-off-by: CrusherNotDrip <crushernotdrip@tilnotdrip.org>
1 parent fcd208d commit 29dd2fd

2 files changed

Lines changed: 37 additions & 26 deletions

File tree

.github/configs/pr-type-labeler.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,52 +2,52 @@
22
'PR: Assets':
33
- changed-files:
44
- any-glob-to-any-file:
5-
- assets/**
5+
- 'assets/**'
66

77
# Ignore script files
8-
- !**/*.hx
9-
- !**/*.hxc
10-
- !**/*.hxs
11-
- !**/*.hxp
8+
- '!**/*.hx'
9+
- '!**/*.hxc'
10+
- '!**/*.hxs'
11+
- '!**/*.hxp'
1212

13-
- extras/appicons/**
14-
- **/*.gitkeep # For empty directories that need to be tracked.
13+
- 'extras/appicons/**'
14+
- '**/*.gitkeep' # For empty directories that need to be tracked.
1515

1616
# Give any pr the "PR: Documentation" tag if any .MD files are changed or if there are changes inside the docs/ folder.
1717
'PR: Documentation':
1818
- changed-files:
1919
- any-glob-to-any-file:
20-
- docs/**
21-
- **/*.md
22-
- LICENSE # Meant to be off limits for any pr but Crusher or Til may change it.
20+
- 'docs/**'
21+
- '**/*.md'
22+
- 'LICENSE' # Meant to be off limits for any pr but Crusher or Til may change it.
2323

2424
# Give any pr the "PR: GitHub" tag if any .yml files are changed or if there are changes inside the .github/ folder.
2525
'PR: GitHub':
2626
- changed-files:
2727
- any-glob-to-any-file:
28-
- **/*.github/**
29-
- **/*.gitattributes
30-
- **/*.gitignore
31-
- **/*.yml
28+
- '**/*.github/**'
29+
- '**/*.gitattributes'
30+
- '**/*.gitignore'
31+
- '**/*.yml'
3232

3333
# Give any pr the "PR: Haxe" tag if any haxe related files are changed.
3434
'PR: Haxe':
3535
- changed-files:
3636
- any-glob-to-any-file:
37-
- **/checkstyle.json
38-
- **/hxformat.json
39-
- **/*.hx
40-
- **/*.hxc
41-
- **/*.hxs
42-
- **/*.hxp
43-
- **/*.hxpkg # We don't use this anymore but we'll keep it anyways.
44-
- **/hmm.json
37+
- '**/checkstyle.json'
38+
- '**/hxformat.json'
39+
- '**/*.hx'
40+
- '**/*.hxc'
41+
- '**/*.hxs'
42+
- '**/*.hxp'
43+
- '**/*.hxpkg' # We don't use this anymore but we'll keep it anyways.
44+
- '**/hmm.json'
4545

4646
# Give any pr the "PR: Misc" tag if any other files are changed that don't fit the rest of the tags.
4747
'PR: Misc':
4848
- changed-files:
4949
- any-glob-to-any-file:
50-
- .vscode/**
51-
- extras/**
52-
- !extras/appicons/** # Meant to be an asset change.
53-
- setup/**
50+
- '.vscode/**'
51+
- 'extras/**'
52+
- '!extras/appicons/**' # Meant to be an asset change.
53+
- 'setup/**'

.github/workflows/build-game.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@ name: Build Game
22

33
on:
44
push:
5+
paths:
6+
- 'assets/**'
7+
- 'extras/appicons/**'
8+
- 'src/**'
9+
- '**/*.hx'
10+
- '**/*.hxc'
11+
- '**/*.hxs'
12+
- '**/*.hxp'
13+
- '**/*.hxpkg' # We don't use this anymore but we'll keep it anyways.
14+
- '**/hmm.json'
15+
516
workflow_dispatch:
617

718
jobs:

0 commit comments

Comments
 (0)