The `*` results in branches with a `/` excluded.
Also exclude running tests if only docs change.
# This should disable running the workflow on tags, according to the
# on.<push|pull_request>.<branches|tags> GitHub Actions docs.
branches:
- - "*"
+ - "**"
# Note: trying to exclude pull requests because it results in duplicate job
# on the commits belonging to pull requests.
# pull_request:
# This should disable running the workflow on tags, according to the
# on.<push|pull_request>.<branches|tags> GitHub Actions docs.
branches:
- - "*"
+ - "**"
+ paths-ignore:
+ - README.rst
+ - "docs/*"
# Note: trying to exclude pull requests because it results in duplicate job
# on the commits belonging to pull requests.
# pull_request: