fix(pipeline-doctor): read .woodpecker/ directory configs (#202)
The dev-tag-guard check missed repos whose Woodpecker config is a .woodpecker/ directory of per-arch workflows (the refs/tags/v* trigger never entered ci_txt). Now globs .woodpecker/*.yaml|*.yml too. commonground-legacy + csi-s3 -> 9/9; trio + self-test still 9/9.
This commit is contained in:
@@ -163,7 +163,11 @@ ci_txt=""
|
||||
if [ -d "$REPO/ci" ]; then
|
||||
ci_txt="$(cat "$REPO"/ci/*.sh 2>/dev/null || true)"
|
||||
fi
|
||||
for wp in "$REPO/.woodpecker.yaml" "$REPO/.woodpecker.yml"; do
|
||||
# Woodpecker config may be a single file OR a .woodpecker/ DIRECTORY of per-arch
|
||||
# workflows (cluster #202) — fold both forms into ci_txt so the dev-tag-guard /
|
||||
# refs/tags/v* trigger is seen either way.
|
||||
for wp in "$REPO/.woodpecker.yaml" "$REPO/.woodpecker.yml" \
|
||||
"$REPO"/.woodpecker/*.yaml "$REPO"/.woodpecker/*.yml; do
|
||||
[ -f "$wp" ] && ci_txt="$ci_txt
|
||||
$(cat "$wp")"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user