[API] Update create-lxc.sh / Improve error messages #1 (#2049)

* update create-lxc.sh

* [core] Ignore create_lxc.sh at validate filename (#2059)

* Update validate-filenames.yml

---------

Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com>
This commit is contained in:
Michel Roegl-Brunner
2025-02-05 16:29:07 +01:00
committed by GitHub
parent 778b6be4e0
commit 5451e61484
2 changed files with 19 additions and 10 deletions

View File

@ -50,9 +50,13 @@ jobs:
NON_COMPLIANT_FILES=""
for FILE in $CHANGED_FILES; do
# Datei "ct/create_lxc.sh" explizit überspringen
if [[ "$FILE" == "ct/create_lxc.sh" ]]; then
continue
fi
BASENAME=$(echo "$(basename "${FILE%.*}")")
if [[ ! "$BASENAME" =~ ^[a-z0-9-]+$ ]]; then
NON_COMPLIANT_FILES="$NON_COMPLIANT_FILES $FILE"
NON_COMPLIANT_FILES="$NON_COMPLIANT_FILES $FILE"
fi
done