Skip to content

Commit 800ece4

Browse files
committed
fix(ci): skip slot symlinks in test-core Dockerfile discovery
The current/next/dev slot symlinks under docker/openemr/ were swept into test-core.yml's matrix discovery, adding redundant Production Docker (current|next|dev) jobs that rebuilt the same images. The dev slot (master) then tripped the upstream RootCliGuard check, reddening CI. Skip symlinked dirs during discovery so only the real version dirs form the matrix. Assisted-by: Claude Code
1 parent cf81a6b commit 800ece4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/test-core.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,15 @@ jobs:
3737
# Use that output as a test matrix in github actions.
3838
run: |
3939
shopt -s nullglob
40-
dirs=( docker/openemr/*/Dockerfile )
40+
dirs=()
41+
for f in docker/openemr/*/Dockerfile; do
42+
d=${f%/Dockerfile}
43+
[ -L "$d" ] || dirs+=( "$d" )
44+
done
4145
if (( "${#dirs[@]}" == 0 )); then
4246
echo 'No Dockerfiles found in docker/openemr subdirectories.' >&2
4347
exit 1
4448
fi
45-
dirs=( "${dirs[@]%/Dockerfile}" )
4649
dirs=( "${dirs[@]#docker/openemr/}" )
4750
# Use jq to ensure that the output is valid JSON or fail trying.
4851
# The output (after '=') must be valid JSON for GitHub Actions to use it as a matrix.

0 commit comments

Comments
 (0)