Skip to content

Commit

Permalink
Only run workflows when necessary (#4790)
Browse files Browse the repository at this point in the history
* Run workflows only when necessary

* submod

* also run tests on yml change

* aba bab abab ababa

* give up

* give up 2
  • Loading branch information
mirrorcult authored Oct 7, 2021
1 parent 6b474c7 commit f1e5648
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/validate-rsis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: RSI Validator

on: [pull_request]
on:
pull_request:
paths:
- '**.rsi/**'
jobs:
validate_rsis:
name: Validate RSIs
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/yaml-linter.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: YAML Linter

on: [push, pull_request]
on: [pull_request, push]

jobs:
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit f1e5648

Please sign in to comment.