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:
14
.github/workflows/build-test.yml
vendored
14
.github/workflows/build-test.yml
vendored
@@ -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:
|
||||||
|
|||||||
5
.github/workflows/validate-rsis.yml
vendored
5
.github/workflows/validate-rsis.yml
vendored
@@ -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
|
||||||
|
|||||||
3
.github/workflows/yaml-linter.yml
vendored
3
.github/workflows/yaml-linter.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user