Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion actions/discover-services/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,11 @@ runs:
# the image. We invert it: `!` lines are the allow-list; anything
# matching becomes a candidate for "docker-relevant change".
if [ -f .dockerignore ]; then
includes=$(grep '^!' .dockerignore | sed 's|^!||; s|[.]|\\.|g; s|/$|/.*|; s|\*|.*|g')
# `|| true`: a .dockerignore with no `!` allow-list lines makes
# grep exit 1, and `set -e` (with pipefail) would abort the whole
# detect job on that empty-match — same failure class as the
# SIGPIPE guard below. An empty `includes` is handled downstream.
includes=$(grep '^!' .dockerignore | sed 's|^!||; s|[.]|\\.|g; s|/$|/.*|; s|\*|.*|g' || true)
else
includes=""
fi
Expand Down