Ignore paths in workflows if only updating the changelog (#692)

* Add filters so jobs don't run twice for changelog changes

* one final tweak

* Final tweaks

* changelog
This commit is contained in:
Will Hunt 2023-03-29 10:15:34 +01:00 committed by GitHub
parent e2226d6748
commit 2b5d4640c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 0 deletions

View File

@ -4,8 +4,12 @@ name: "Docker Hub - Latest"
on:
push:
paths-ignore:
- changelog.d/**'
pull_request:
branches: [ main ]
paths-ignore:
- changelog.d/**'
env:
DOCKER_NAMESPACE: halfshot

View File

@ -2,6 +2,8 @@ name: Build docs
on:
push:
paths-ignore:
- changelog.d/**'
jobs:
deploy:

View File

@ -3,8 +3,12 @@ name: CI
on:
push:
branches: [ main ]
paths-ignore:
- changelog.d/**'
pull_request:
branches: [ main ]
paths-ignore:
- changelog.d/**'
workflow_dispatch:

1
changelog.d/692.misc Normal file
View File

@ -0,0 +1 @@
Only run changelog checks when only the changelog changes in CI.