make workflows conditional on changeset

This commit is contained in:
sigma67 2024-01-10 21:30:14 +01:00
commit 87b7ad6201
No known key found for this signature in database
GPG key ID: 1C314227DF0103D0
3 changed files with 11 additions and 2 deletions

View file

@ -4,6 +4,9 @@ on:
push:
branches:
- main
paths:
- ytmusicapi
- tests
pull_request:
branches:
- main

View file

@ -1,7 +1,10 @@
name: Build Documentation
on:
push
push:
paths:
- ytmusicapi
- docs
jobs:
build:
@ -19,4 +22,4 @@ jobs:
- name: Build documentation
run: |
cd docs
make html
make html

View file

@ -4,6 +4,9 @@ on:
pull_request:
branches:
- main
paths:
- ytmusicapi
- tests
jobs:
ruff: