Trigger all CI jobs for Dockerfile changes (#10651)

* Trigger docs job for possible mdbook updates, too

* Update comment

* Intentionally trigger ci docs job?

* Broaden more

* Revert "Intentionally trigger ci docs job?"

This reverts commit 801cf2bfdf885cd11c1bf0bdde8f973bb75db854.
This commit is contained in:
Ryo Onodera 2020-06-17 16:20:52 +09:00 committed by GitHub
parent 0de6c444d6
commit 540ac9eb6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,8 @@ annotate() {
}
# Checks if a CI pull request affects one or more path patterns. Each
# argument is checked in series.
# pattern argument is checked in series. If one of them found to be affected,
# return immediately as such.
#
# Bash regular expressions are permitted in the pattern:
# affects .rs$ -- any file or directory ending in .rs
@ -41,7 +42,8 @@ affects() {
# the worse (affected)
return 0
fi
for pattern in "$@"; do
# Assume everyting needs to be tested when any Dockerfile changes
for pattern in ^ci/docker-rust/Dockerfile ^ci/docker-rust-nightly/Dockerfile "$@"; do
if [[ ${pattern:0:1} = "!" ]]; then
for file in "${affected_files[@]}"; do
if [[ ! $file =~ ${pattern:1} ]]; then