Skip to content

Commit

Permalink
Fix ignored workflow logic
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
svenklemm committed Sep 19, 2023
1 parent 646cecd commit 228c395
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/linux-32bit-build-and-test-ignored.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ name: Regression Linux i386
"on":
push:
branches:
- prerelease_test
- main
paths:
- '!**'
- '**.md'
- 'LICENSE*'
- NOTICE
pull_request:
paths:
- '!**'
- '**.md'
- 'LICENSE*'
- NOTICE
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/linux-build-and-test-ignored.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ name: Regression
"on":
push:
branches:
- prerelease_test
- main
paths:
- '!**'
- '**.md'
- 'LICENSE*'
- NOTICE
pull_request:
paths:
- '!**'
- '**.md'
- 'LICENSE*'
- NOTICE
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux-build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/shellcheck-ignored.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/windows-build-and-test-ignored.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ name: Regression Windows
"on":
push:
branches:
- prerelease_test
- main
paths:
- '!**'
- '**.md'
- CHANGELOG
- 'LICENSE*'
- NOTICE
- 'bootstrap*'
pull_request:
paths:
- '!**'
- '**.md'
- CHANGELOG
- 'LICENSE*'
Expand Down

0 comments on commit 228c395

Please sign in to comment.