Run github workflows only when relevant paths are modified

This commit is contained in:
Debanjum Singh Solanky 2022-08-01 02:30:23 +03:00
parent 06499da0c3
commit 0797e9cef8
2 changed files with 22 additions and 0 deletions

View file

@ -4,9 +4,21 @@ on:
pull_request:
branches:
- master
paths:
- src/**
- config/**
- Dockerfile
- docker-compose.yml
- .github/workflows/build.yml
push:
branches:
- master
paths:
- src/**
- config/**
- Dockerfile
- docker-compose.yml
- .github/workflows/build.yml
jobs:
build:

View file

@ -4,9 +4,19 @@ on:
pull_request:
branches:
- 'master'
paths:
- src/**
- tests/**
- config/**
- .github/workflows/test.yml
push:
branches:
- 'master'
paths:
- src/**
- tests/**
- config/**
- .github/workflows/test.yml
jobs:
test: