Add path filters for workflow triggers

Added path filters to trigger workflows only for changes in the 'src' folder.
This commit is contained in:
D1GQ authored and GitHub committed 2026-01-09 22:53:55 -06:00
1 parent ad220a2011
commit b95dd19747
1 file changed
+6 -2
+6 -2
View File
@@ -3,9 +3,13 @@ name: Build
on:
push:
branches: [ main, dev ]
paths:
- 'src/**' # Only trigger when files in the 'src' folder change
pull_request:
branches: [ main ]
paths:
- 'src/**' # Apply same filter to pull requests
jobs:
build-mod:
runs-on: ubuntu-latest
@@ -31,4 +35,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: BetterAmongUs.dll
path: src/bin/Release/net6.0/BetterAmongUs.dll
path: src/bin/Release/net6.0/BetterAmongUs.dll