Fix ignored workflow logic

The paths filter in github workflows will trigger when at least
one of the pathes match unless everything else has been explicitly
excluded. For the ignored workflows we want it to only trigger
when only those files explicitly specified are changed and nothing
else.
This commit is contained in:
Sven Klemm 2023-09-19 23:19:31 +02:00 committed by Sven Klemm
parent 6e5d687184
commit 9dc699a59b
5 changed files with 14 additions and 8 deletions

View File

@ -5,13 +5,15 @@ name: Regression Linux i386
"on":
push:
branches:
- prerelease_test
- main
paths:
- '!**'
- '**.md'
- 'LICENSE*'
- NOTICE
pull_request:
paths:
- '!**'
- '**.md'
- 'LICENSE*'
- NOTICE

View File

@ -5,13 +5,15 @@ name: Regression
"on":
push:
branches:
- prerelease_test
- main
paths:
- '!**'
- '**.md'
- 'LICENSE*'
- NOTICE
pull_request:
paths:
- '!**'
- '**.md'
- 'LICENSE*'
- NOTICE

View File

@ -39,7 +39,7 @@ jobs:
else
.github/gh_matrix_builder.py ${{ github.event_name }}
fi
regress:
# Change the JOB_NAME variable below when changing the name.
name: PG${{ matrix.pg }}${{ matrix.snapshot }} ${{ matrix.name }} ${{ matrix.os }}

View File

@ -3,13 +3,13 @@
# executed because some files were ignored.
name: Shellcheck
"on":
pull_request:
push:
branches:
- main
paths-ignore:
- '**.sh'
- .github/workflows/shellcheck.yaml
push:
branches:
- prerelease_test
pull_request:
paths-ignore:
- '**.sh'
- .github/workflows/shellcheck.yaml

View File

@ -5,8 +5,9 @@ name: Regression Windows
"on":
push:
branches:
- prerelease_test
- main
paths:
- '!**'
- '**.md'
- CHANGELOG
- 'LICENSE*'
@ -14,6 +15,7 @@ name: Regression Windows
- 'bootstrap*'
pull_request:
paths:
- '!**'
- '**.md'
- CHANGELOG
- 'LICENSE*'