Only run workflows when necessary (#4790)

* Run workflows only when necessary

* submod

* also run tests on yml change

* aba bab abab ababa

* give up

* give up 2
This commit is contained in:
mirrorcult
2021-10-07 13:32:42 -07:00
committed by GitHub
parent 6b474c75f8
commit f1e56483a2
3 changed files with 20 additions and 2 deletions

View File

@@ -3,8 +3,22 @@ name: Build & Test
on:
push:
branches: [ master ]
paths:
- '**.cs'
- '**.csproj'
- '**.sln'
- '**.git**'
- '**.yml'
- 'RobustToolbox/'
pull_request:
branches: [ master ]
paths:
- '**.cs'
- '**.csproj'
- '**.sln'
- '**.git**'
- '**.yml'
- 'RobustToolbox/'
jobs:
build:

View File

@@ -1,6 +1,9 @@
name: RSI Validator
on: [pull_request]
on:
pull_request:
paths:
- '**.rsi/**'
jobs:
validate_rsis:
name: Validate RSIs

View File

@@ -1,6 +1,7 @@
name: YAML Linter
on: [push, pull_request]
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest