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: on:
push: push:
branches: [ master ] branches: [ master ]
paths:
- '**.cs'
- '**.csproj'
- '**.sln'
- '**.git**'
- '**.yml'
- 'RobustToolbox/'
pull_request: pull_request:
branches: [ master ] branches: [ master ]
paths:
- '**.cs'
- '**.csproj'
- '**.sln'
- '**.git**'
- '**.yml'
- 'RobustToolbox/'
jobs: jobs:
build: build:

View File

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

View File

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