mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2026-07-08 17:42:32 +02:00
Annotate files
This commit is contained in:
@@ -18,8 +18,9 @@ jobs:
|
||||
NOT_SAMPLES=$(find . -not -path '*/\.*' -type f ! \( -name '*.conf.sample' -o -name 'README.md' -o -name 'LICENSE' \))
|
||||
NOT_SAMPLES_COUNT=$(echo "${NOT_SAMPLES}" | wc -w)
|
||||
if (( NOT_SAMPLES_COUNT > 0 )); then
|
||||
echo "The following files have extensions that are not allowed:"
|
||||
echo "${NOT_SAMPLES}"
|
||||
for i in ${NOT_SAMPLES}; do
|
||||
echo "::error file=${i},line=1,title=Disallowed filenames::This file extension is not allowed, only .sample is allowed"
|
||||
done
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user