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: push:
branches: branches:
- main - main
paths:
- ytmusicapi
- tests
pull_request: pull_request:
branches: branches:
- main - main

View file

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

View file

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