chore: sync pr-check.yml from Template-Generic [skip ci]

This commit is contained in:
2026-06-07 17:55:23 +00:00
parent a7f07b77a2
commit 31b4bbca2a
+4 -6
View File
@@ -172,8 +172,7 @@ jobs:
if: steps.platform.outputs.platform == 'joomla'
run: |
MISSING=0
SOURCE_DIR="source"
[ ! -d "$SOURCE_DIR" ] && SOURCE_DIR="src"
SOURCE_DIR="src"
[ ! -d "$SOURCE_DIR" ] && exit 0
while IFS= read -r dir; do
if [ ! -f "${dir}/index.html" ]; then
@@ -221,7 +220,7 @@ jobs:
echo "joomla.asset.json: valid"
fi
# Validate all XML files in source/src/ are well-formed
# Validate all XML files in src/ are well-formed
XML_ERRORS=0
if command -v php &> /dev/null; then
while IFS= read -r -d '' xmlfile; do
@@ -452,11 +451,10 @@ jobs:
- name: Verify package source
run: |
SOURCE_DIR="source"
[ ! -d "$SOURCE_DIR" ] && SOURCE_DIR="src"
SOURCE_DIR="src"
[ ! -d "$SOURCE_DIR" ] && SOURCE_DIR="htdocs"
if [ ! -d "$SOURCE_DIR" ]; then
echo "::warning::No source/, src/, or htdocs/ directory"
echo "::warning::No src/ or htdocs/ directory"
exit 0
fi
FILE_COUNT=$(find "$SOURCE_DIR" -type f | wc -l)