Annotate files

This commit is contained in:
Roxedus 2022-07-21 21:24:21 +02:00
parent badf4dab6e
commit 4df1c8c537
No known key found for this signature in database
GPG key ID: EBC13557C4D91D7B

View file

@ -18,8 +18,9 @@ jobs:
NOT_SAMPLES=$(find . -not -path '*/\.*' -type f ! \( -name '*.conf.sample' -o -name 'README.md' -o -name 'LICENSE' \)) 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) NOT_SAMPLES_COUNT=$(echo "${NOT_SAMPLES}" | wc -w)
if (( NOT_SAMPLES_COUNT > 0 )); then if (( NOT_SAMPLES_COUNT > 0 )); then
echo "The following files have extensions that are not allowed:" for i in ${NOT_SAMPLES}; do
echo "${NOT_SAMPLES}" echo "::error file=${i},line=1,title=Disallowed filenames::This file extension is not allowed, only .sample is allowed"
done
exit 1 exit 1
fi fi